Announcement Announcement Module
Collapse
No announcement yet.
Close RMI client session programmatically Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Close RMI client session programmatically

    I'm creating RMI connections through Spring's RmiProxyFactoryBean, setting the values for the RMI connection, and returning a connected proxy to the service. This works fine. However, since I'm doing this dynamically, I'd like to add some additional logic for shutting down idle RMI connections, and gracefully shutting down connections as needed. However, the proxy object does not have a shutdown, close or destroy method. So I'm curious, if I simply dereference the connection, when it's GC'ed, will it be gracefully shutdown, or do I need to worry about leaving a dangling connection and open socket? Do I have an alternative for gracefully shutting down an RMI connection created through the RmiProxyFactoryBean?

    I saw a post back in '05 by someone else with the same question but there was no answer.

    Thoughts? Thanks!

    Thanks!
Working...
X