• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: How to stop RMI service

 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have completed the general coding of the local connection, and now, I moved to the remote server part.
After reading some posts, I have tried to register the RMI services, however, when I try to stop it by:

I discovered that the port (1099) is still active!!!
So, when I try to "restart" the RMI service, the following error occurs:

The port 1099 has been already binded

How can I unbinded the port as well?
Thanks.
Nick
 
Dushy Inguva
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nick,
You'll love Sun for this!!! You cannot unbind the RMI service.
You have to keep it listening and bind ur objects if u want again.
To make a bold comment, RMI could have been built better than it is now. (Im sure im going to scorned for this in the forum !!! )
Dushy
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot stop a port. the Registry is what is running, and if you started it in code, then when the code stops then the registry stops. If you started the registry from the command line, then just use CTRL-C key combination and that will stop the Registry.
Mark
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

You cannot stop a port. the Registry is what is running, and if you started it in code, then when the code stops then the registry stops.

That is to say, I cannot stop the RMI services, and restart it again.
The only way I can do is, when the user click "STOP", I release all resources of the program hold, and quit the server application.
Am I correct?
Thanks for advice.
Nick.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nick,
Yes, that is correct.
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic