• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Restarting RMI Registry

 
Hanna Habashy
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi:
I have a server and RMI registry running on the defualt port. I developt a window to administer the server.
How can I shutdown the server, and restart it within the same window(same thread).
thanks
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If by "server" you mean your Remote object reference... you can always just create a new object of the correct type and use Naming.rebind(). Cleaning up references and resources used by the old reference and transferring them to the new reference could be a pain, though... what exactly are you trying to do?
 
Hanna Habashy
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Nathan:
I am trying to clean the registry from all bound objects, and close the port which the registry running on.
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic