• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

J2ee debug

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.


 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you sure the code you have deployed is the same as the code you are debugging?
 
Stephen Ferg
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic