Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to close a rmi registry with codes???

 
Sean Li
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I create a registry in my assignment:
Registry registry = LocateRegistry.createRegistry(1099);
But how to stop it or close this registry, because I want to use a different port to start the registry server.
Waitting for experts' answer, thanks.
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

But how to stop it or close this registry, because I want to use a different port to start the registry server.

Just stop the server, that will stop the registry.
Eugene.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't stop the registry with any code, only by stopping the server.
Rene
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Um, in my submission, when I start the RMIRegistry through code, when the server closes so does the RMIRegistry, but I didn't have to do anything special to close it at all, no code needed.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic