File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
RMI server timeout
Joined: Feb 27, 2006
Sep 12, 2006 04:17:00
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 ]
Joined: Sep 19, 2005
Sep 12, 2006 06:14:00
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
subject: RMI server timeout
A question on RMI
RMI Server becoming unreferenced
RMI and GC
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014