Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI server timeout

 
sheena
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 291
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic