• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI registry - inside or out?

 
David Duran
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's another way:
Registry registry = LocateRegistry.createRegistry(); // default port
I use the below method to try and start rmid but to no success.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic