aspose file tools*
The moose likes Distributed Java and the fly likes Can we have a timeout for an RMI call? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Can we have a timeout for an RMI call?" Watch "Can we have a timeout for an RMI call?" New topic
Author

Can we have a timeout for an RMI call?

vn us
Ranch Hand

Joined: Dec 27, 2002
Posts: 33
can we configure timeout for an rmi call?
if yes then how ??
Any comment is greatly appriciated
Thanks,
VN
raimondas zemaitis
Ranch Hand

Joined: Feb 23, 2001
Posts: 104
there is no built in timeout mechanizm. You have to implement your own. Make separate Thread which connects to rmi registry and watch it from the main thread, if call doesn't return in some specified time, kill that thread and do other stuff that is required.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Can we have a timeout for an RMI call?