Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

putting rmiregistry code in a method

 
Allion Salvador
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Edward Harned
Ranch Hand
Posts: 291
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look up this method:

java.rmi.registry.LocateRegistry()
 
Allion Salvador
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it! Thanx!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic