Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI Servers

 
Senthil Paramasivam
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking for some help...
1. How can a RMI Server shutdown gracefully ?
2. Has anybody used License servers like Flexlm (www.globetrotter.com) for Licensing the RMI Servers ?
Thanks
Senthil
 
Dave P
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try checking out the java techtip at this url:
http://developer.java.sun.com/developer/JDCTechTips/2001/tt0227.html
Life Cycle of an RMI server.
Does anyone know how to force Tomcat 4.1 to shutdown the RMI framework? I have a lot of RMI threads that don't shutdown after I shut down my RMI context listener. It just uses the Naming Class. I do an unbind() and then my thread dies successfully, but tomcat seems to leave the RMI context running.
 
Dave P
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are the threads tomcat leaves running:
org.apache.catalina.startup.Bootstrap at localhost:5442
System Thread [Finalizer] (Running)
System Thread [Reference Handler] (Running)
System Thread [Signal Dispatcher] (Running)
System Thread [RMI TCP Accept-0] (Running)
Thread [Thread-2] (Running)
System Thread [RMI Reaper] (Running)
System Thread [GC Daemon] (Running)
System Thread [RMI LeaseChecker] (Running)
Thread [Thread-3] (Running)
Thread [Thread-6] (Running)
Thread [DestroyJavaVM] (Running)
System Thread [RMI TCP Connection(12)-10.72.104.54] (Running)
 
Dave P
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, I figured it out myself. I put a System.Exit(0) in my contextlistener class when tomcat tells it to shutdown.
contextDestroyed(ServletContextEvent event) {
Naming.unbind();
system.exit(0);
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic