• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NX: How to stop RMI service

 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Nick,
Yes, that is correct.
Regards, Andrew
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic