[omniORB] timeout on location forwarded object reference

Duncan Grisby duncan at grisby.org
Fri Feb 20 16:42:36 GMT 2004


On Wednesday 11 February, "Lee, Robert C." wrote:

> Yes, it does repeatedly throw giopStream, reverting, invocation etc, etc.
> 
> I solved this problem by installing an handler:
> 
> omniORB::installTransientExceptionHandler (0, my_transient_handler);
> 
> CORBA::Boolean my_transient_handler(void* cookie,
>         CORBA::ULong retries,
>         const CORBA::TRANSIENT& ex)
> {
>    if (retries >= 3)
>         return false;
>    else
>         return true;
> }
> 
> Now, after 3 tries, I get an exception thrown that I can catch and handle.
> Perhaps my trying to use the timeout features didn't work, so I did this
> instead.
> 
> Is my approach the correct one or was I just lucky?

Yes, that's the right thing to do. It's precisely what the exception
handlers are designed for.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list