aspose file tools
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 The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI server timeout" Watch "RMI server timeout" New topic

RMI server timeout


Joined: Feb 27, 2006
Posts: 4

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.

[ 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
It is sorta covered in the JavaRanch Style Guide.
subject: RMI server timeout