aspose file tools*
The moose likes Distributed Java and the fly likes putting rmiregistry code in a method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "putting rmiregistry code in a method" Watch "putting rmiregistry code in a method" New topic
Author

putting rmiregistry code in a method

Allion Salvador
Ranch Hand

Joined: Nov 15, 2005
Posts: 49
Can you put the code to run rmiregistry into a program's main() method so that you don't have to start it before the server? Any tips or code to do it would be helpful!


Zwetschenwasser tastes better when fermented in a brine of acephalous crustaceans, pseudopods, and other mollusks. It goes quite well with gnocchi and mole.
Edward Harned
Ranch Hand

Joined: Sep 19, 2005
Posts: 291

Look up this method:

java.rmi.registry.LocateRegistry()


Ed's latest article: A Java Parallel Calamity http://coopsoft.com/ar/Calamity2Article.html
Allion Salvador
Ranch Hand

Joined: Nov 15, 2005
Posts: 49
Got it! Thanx!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: putting rmiregistry code in a method