[omniORB] Client call timeout esception

Duncan Grisby duncan at grisby.org
Fri Apr 30 18:01:10 BST 2004


On Monday 26 April, "Frederic Prin" wrote:

> When a client makes a call to a server that is being debugged in a
> debugger and even more stopped at a breakpoint location, the client is
> frozen.
> To deal with this issue I use void
> setClientCallTimeout(CORBA::Object_ptr obj, CORBA::ULong millisecs);
> That works perfectly!
> 
> I catch a TRANSIENT exception when the timeout occur.
> But in the case of a client trying to getIOR+narrow+calls a method of a
> real dead server (due to a becoming invalid IOR), I also get a TRANSIENT
> exception!
> 
> Is there a way to discriminate the 2 cases
> 1) the timeout
> 2) the dangling IOR that makes a bad call

You can distinguish the cases with the exception minor code. See
include/omniORB4/minorCode.h for the codes.

Cheers,

Duncan.

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



More information about the omniORB-list mailing list