This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes RMI server timeout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI server timeout" Watch "RMI server timeout" New topic
Author

RMI server timeout

sheena
Greenhorn

Joined: Feb 27, 2006
Posts: 4
Hi,

Is there any property in rmi, so that the server time out is set to infinity? Also, is the remote object garbage collected after a time period? I dont want the remote object to be garbage collected.

My application, is a print server. I want the print server to be alive at all times.Irrespective of whether there are clients connected to it or not.

Thanks
[ September 12, 2006: Message edited by: Nousheen Mirza ]
Edward Harned
Ranch Hand

Joined: Sep 19, 2005
Posts: 291

There have been may discussions on the Server exiting. Search through the forums.

It comes down to keeping a live reference to your impl class so it isn't garbage collected and keeping your main() that you used to start the server from exiting. (generally with a wait() forever)


Ed's latest article: A Java Parallel Calamity http://coopsoft.com/ar/Calamity2Article.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI server timeout