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 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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can we have a timeout for an RMI call?
 
Similar Threads
RMI Small Problem
RMI server stops
Can we call RMI tghrough C++
Difference between ActionContext.getContext().getSession() and HttpSession
can we serialize InputStream and OutputStream object?