Forums Register Login

EJB3 Debug with Eclipse and JBoss ( Remote interface )

+Pie Number of slices to send: Send

Hello.

I'm working on EJB3 project with Eclipse 3.4.2 + JBoss5 Server.
My project has the following structure:

ClienteManager ( set as my Remote Interface @Remote )
ClienteManagerBean ( set as the @Stateful session bean )
ClientTeste ( main class to test my ejb project )

The problem is that I can't debug my ClientManager ( Session Bean ).
I set the breakpoint at my session bean, but when I start the program in debug mode, nothing happens.

I know that my ClientTeste "talks" with session beans through a proxy, but I believe that it should have a way
to do my debug that's running locally.


Notes.:
- I already set my Server at Eclipse ( JBoss5 for my case )
- I've already put my project into the JBoss Server configuration
- I've started my server in debug mode


Could someone help me with this debug problem?



Thanks in advance.
+Pie Number of slices to send: Send
For full debugging capabilities, you need two debugging sessions. One for the client, one for the server, because each JVM has its own debug server builtin. Also, if you're running both on the same machine, they have to use 2 different debug network ports, since the rule is that a port can only be owned by one server at a time.

If you connect a remote debugger to JBoss, you should be able to take breakpoints and do all the usual debugging functions on the server-side code for the EJB. To debug the client, you'll need (as I said) a debugging session to the client app as well. If you're running that app from within Eclipse, you won't need to explicitly set up a remote debug configuration, though - just start a debug session like any other app.

That's one of the strengths of Eclipse. It has the ability to debug multiple applications/servers at the same time, and it's really useful in complex setups where multiple JVMs are talking to each other.
Would anybody like some fudge? I made it an hour ago. And it goes well with a tiny ad ...
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 4267 times.
Similar Threads
Can't compile ejb java source files using JBoss 5 libraries (javax.ejb does not exist)
Running JBoss Project in Debug Mode
org.jboss.resource.JBossResourceException: Error while starting JBOSS server
java.lang NullPointerException with EJB 3 stateless web services (JBoss 5 CR1)
Help EJB3
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:10:44.