This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes J2ee debug Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "J2ee debug" Watch "J2ee debug" New topic

J2ee debug

Stephen Ferg

Joined: Apr 23, 2007
Posts: 9
I have a J2ee application running on another server. I use Eclipse IDE to do remote debug and it worked fine for servlet application. But for MDB the breakpoint I set inside the onMessage method does not stop there. I send message from somewhere to the queue, and the MDB listens to the same queue. I can tell the onMessage method is invoked because it executes the code as desired. But the debug part failed.

1) start the remote server in debug mode.
2) create a new remote application and listen to the same debug port
3) send a message from somewhere to the queue
4) the MDB listening to the queue doesn't stop at the break point inside onMessage. the onMessage was invoked and executed though. so somehow the breakpoint was skipped.

But when I set breakpoint on the struts action code it works fine.

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Are you sure the code you have deployed is the same as the code you are debugging?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Stephen Ferg

Joined: Apr 23, 2007
Posts: 9
it can't be different. I started my localhost server from command line in debug mode. Then I created a new remote application in debug configuration. so it is remote debugging local code actually, but since I don't start server from IDE I have to use remote debug.
Do you think if I start the server from Eclipse (debug mode) directly it may solve the problem ?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: J2ee debug
jQuery in Action, 3rd edition