File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse - RMI debugging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse - RMI debugging" Watch "Eclipse - RMI debugging" New topic
Author

Eclipse - RMI debugging

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15632
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Tim West
Ranch Hand

Joined: Mar 15, 2004
Posts: 539
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

Joined: Jun 25, 2001
Posts: 15632
    
  15

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse - RMI debugging
 
Similar Threads
At work, Javascript, CSS, AJAX Code
Testing Jar File
IDE or No IDE ?
A simple class
best groovy/grails ide?