This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes RMI registry - inside or out? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI registry - inside or out?" Watch "RMI registry - inside or out?" New topic
Author

RMI registry - inside or out?

David Duran
Ranch Hand

Joined: Feb 11, 2002
Posts: 122
Does anyone know of any pros/cons to starting the RMI registry from within my application as opposed to externally via the rmiregistry exectutable?
Gopi Kishore
Greenhorn

Joined: Sep 27, 2003
Posts: 15
Runtime rt = Runtime.getRuntime();
rt.exec("C:/jbuilder5/jdk1.3/bin/rmiregistry.exe");
Try these two steps putting in any class main method
Cheers
Gopi
David Duran
Ranch Hand

Joined: Feb 11, 2002
Posts: 122
Here's another way:
Registry registry = LocateRegistry.createRegistry(); // default port
I use the below method to try and start rmid but to no success.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI registry - inside or out?
 
Similar Threads
jarring submission
(B&S) Cant start RMI server on any other port except 1099
what is a rmi registry and how is it usefull?
HELP !!!!!
RMI: ClassNotFoundException for STUB class