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.
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 ?