[omniORB] rebinding after communication failure

Constantin Adam ctin@comet.columbia.edu
Tue, 25 May 1999 15:49:40 -0400 (EDT)


Hi,

I have the following problem:

  - Client C binds to server S, stores the object reference to S and
    uses it to invoke operations on S later.

  - C invokes an operation on S.  

  - S fails, and it is being restarted.  

  - C tries to invoke an operation on S using the old object
    reference.  It fails, even though the server is alive.


One solution to this problem is to catch COMM_FAILURE exception and
rebind to the server. 

Is there a better way to handle this situation, an automatic way to
deal with it?

Thank you,

Constantin