In my company (which scored 3/12 on the Joel Test) we have access to free software only, so I was wondering what, in the Java EE world, are the best tools money can buy?
For instance, I was painfully debugging some HQL with p6spy when someone told me about hibernate profiler, which is really great and helpful. And I started to think "t...
Here's a scenario:
I have a webservice, let's call this StockQuoteService deployed on tomcat (axis).
There is this method getStockQuote() exposed via this webservice.
Now, I would like to build a GUI tool which would build a webservice called StockQuoteServiceEx on the fly. The new webservice would expose the same methods as StockQuot...
I am writing a JCA resource adapter. I'm also, as I go, trying to fully understand the connection management portion of the JCA specification. As a thought experiment, pretend that the only client of this adapter will be a Swing Java Application Client located on a different machine. Also assume that the resource adapter will communic...
I have a .java src file that looks like this:
class Test {
public void foo() {
}
}
I would like to modify foo() programatically, in the sense, say add a sysout and make it look like this:
public void foo() {
System.out.println("hello world");
}
Are there any known ways to doing this by NOT directly edit...
I have been using Tomcat 6 for all my application development and deployment purposed, but today decided to use JBoss as it seems to be more scalable.
But after configuring JBoss on my eclipse and deploying my application I get the following error,
Getting java.lang.NoClassDefFoundError: Filter exception on Jboss
I added the server ...
My question is basically the flip side of a previous question I asked.
Is there a way to destroy (and then re-create) a (the?) ServletContext of a web application? Basically I'm trying to programmatically do whatever JBoss does to re-initialized the ServletContext - or just tell JBoss to do it for me.
...
Hi all,
I have a J2EE application that needs some extensive integration testing. I am using Jmeter to generate HTTP POST requests. So far I manage to send them to the server correctly but the xml is static.
I am looking for a way to insert dynamic/random values into the XML and then send it to the server. Something like a PreProcessor b...
Can anyone tell me why following exception comes?
java.rmi.ServerException: RuntimeException; nested exception is:
java.lang.IllegalStateException: Cannot obtain inMethodFlag for: getPrimaryKey
How to avoid it?
Thanks in advance.
...
What rarely used debugging tools you found useful ?
My recent debugging situation on Visual Studio required trapping the breakpoint on fresh built 32-bit DLL, which was loaded by GUI-less executable, which was spawned by COM+ server on remote x64 machine, which was called through RPC from actual GUI. As usual, all worked well on all 32 b...
I am maintaining following structure for my project
Web - Web Project
Model - EJB Project
Persistence - Java project having data classes and their mapping for Hibernate
Pokuri - EAR Project
As we know we can give jar file to hibernate configuration to load mapping information from jar. As I deploy EAR on to server I just want to bui...
I am having few queries regarding heap usage in my app. At instances it is observed that user activity is minimal (or nil ) on weekend but heap usage increases linearly, reaches the threshold causing the GC to kick in. I wish to analyze the cause of this heap usage and confirm if this is normal and expected. Assuming no user activity, th...
i need a editor like one used here with live preview and instructions for how to acess the functionalities of the editor programatically..
...
I am trying to create a simple Java HTTP Servlet inside of eclipse, however, under the Web folder in the project wizard i do not have an option for J2EE Web Module as many tutorials have indicated, i only have Dynamic and Static Web Projects. just a little background, i am trying to simply build a small servlet that i am then exposing v...
For our current J2EE project based on JBoss, we need to interface with a remote system using message driven beans and a JCA resource adapter provided as a RAR file by a third party. I would like to package and deploy the entire project as an EAR file to our JBoss server. Most notably, the RAR file should be embedded within the EAR file a...
Typically, when you declare different "<authentication-provider>" for your application (webapp in my case), Spring Security takes care of invoking providers one after another, incase of failure. So, say I have DatabaseAuthenticationProvider and LDAPAuthenticationProvider with DatabaseAuthenticationProvider declared first in the config fi...
I know that for JBoss you need a [name]-ds.xml file in the /deploy subdirectory of the appropriate instance.
i dont have any experience with other J2EE containers, but im trying to stick to standards as much as possible.
is there a standard way to define a JDBC datasource and deploy it ? if possible i'd like to include my datasource insi...
Hello
I'm a newbie to GWT (by the way being really impressed by it) and find it really attractive to a person like me with good knowledge of C++/.NET desktop technologies willing to write web applications.
I started my own project based on the generated sample from the GWT Eclipse Wizard. This project generates simple html page with ...
Hi,
We have a strange situation where we loose a Stateless SessionBean in a Bean Pool in Weblogic 10.3.0
Since we only have one bean in the pool, this effectively hangs all incoming calls. We do not want more than one instance in the pool because of application restrictions.
In the Weblogic admin console, we can see that there are 1 i...
I seem to have coded myself into a corner. First let me tell you what my end goal is: I have a GWT app that will have features available to users who are not logged in, and other features only available to authenticated users. When an unauthenticated user clicks on something that requires authentication, I would like a login box to pop u...
Is it possible to manage connection timeouts or errors in a MessageDrivenBean?
You can make the factory to retry connecting a certain number of times but... is it possible to make some actions each time that a reconnection retrial is neccesary? Is it possible to register an ExceptionListener into the MessageDrivenBean's connection someh...