• Post Reply Bookmark Topic Watch Topic
  • New Topic

Suitable for internet-deployed EJB clients?

 
John Lindwall
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have an EJB client application written in Java that uses RMI to communicate to Weblogic server 6.0. It initialy loads a bunch of data locally by maiing calls to the RMI server (which in turn calls session beans to retrieve the data).
This has worked great "in the lab" and even "in the wild" for a while. But now we're seeing weird unexpected java RMI exceptions like "EOFException" and "PeerGoneException".
Some people here claim that RMI is not a suitable protocol for such an application and that it must be timing out or is too sensitive to internet noise.
Any opinions?
John
 
John Lindwall
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We've ameliorated the errors somewhat by implementing a retry loop of a failed RMI call. We retry the call 3 times if it fails with a RemoteException (and a couple of other exception types).
This seems to greatly lessen the failures.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!