• 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

Eclipse - RMI debugging

 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anyone got any good tricks for debugging RMI servers in Eclipse? I have no problems with RMI itself, but I'm using RMIC to launch the server in its own JVM on demand and that JVM's not connected to the Eclipse debugger.
 
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried starting Java with debugging turned on:

-Xrunjdwp:transport=dt_socket,address=7500,server=y,suspend=n

And then using remote debugging in Eclipse? (Run->Debug...->Remote Java Application->New)

I've not used RMI but it sounds like that might help.


--Tim
 
Tim Holloway
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The only real problem with that is that the RMID server is spawning a JVM for the service to run in, and I can't tell off the top of my head where I'd put the startup parameters for the spawned JVM.

Fortunately, I was able to peel the top-layer code out so that the RMI server-side code is now just a facade that delegates to a "normal" Java class that I can launch via a main() method.
 
reply
    Bookmark Topic Watch Topic
  • New Topic