Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we have a timeout for an RMI call?

 
vn us
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we configure timeout for an rmi call?
if yes then how ??
Any comment is greatly appriciated
Thanks,
VN
 
raimondas zemaitis
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic