File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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
 
Similar Threads
A question on RMI
NoSuchObjectException!!!
RMI and GC
Implementin Unreferenced
RMI Server becoming unreferenced