Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Corba > Re: checking fo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 7 Topic 476 of 543
Post > Topic >>

Re: checking for org.omg.CORBA.OBJECT_NOT_EXIST

by Jonathan Biggar <jon@[EMAIL PROTECTED] > Jan 23, 2007 at 06:35 PM

ke_jin@[EMAIL PROTECTED]
 wrote:
> We should say thanks to OMG that made this change in 2.3 (or earlier?).
> Now, your best around is to be write a wrapper that catches exceptions
> and return true.
> 
> For visibroker, I recall it has a property you can set that will force
> the ORB to be backward compatible to CORBA 2.2, namely, non_existent()
> returns true, instead of throwing a exception, when it fails to connect
> to the server.

I consider that broken behavior, which is why the standard was clarified 
in 2.3 to allow non_existent() to throw exceptions.

non_existent() returning true when it can't contact the server is likely 
returning a lie.

Just write your own wrapper function that calls non_existent(), catches 
the exceptions you want, and returns different error codes for different 
exceptions.  Once you've done that, you can reuse that code everywhere 
without having to write lots of catch() blocks.

-- 
Jon Biggar
Floorboard Software
jon@[EMAIL PROTECTED]

 




 7 Posts in Topic:
checking for org.omg.CORBA.OBJECT_NOT_EXIST
donalmurtagh@[EMAIL PROTE  2007-01-22 07:38:24 
Re: checking for org.omg.CORBA.OBJECT_NOT_EXIST
ke_jin@[EMAIL PROTECTED]   2007-01-23 09:05:34 
Re: checking for org.omg.CORBA.OBJECT_NOT_EXIST
Jonathan Biggar <jon@[  2007-01-23 18:35:04 
Re: checking for org.omg.CORBA.OBJECT_NOT_EXIST
ke_jin@[EMAIL PROTECTED]   2007-01-24 10:23:20 
Re: checking for org.omg.CORBA.OBJECT_NOT_EXIST
Jonathan Biggar <jon@[  2007-01-24 18:28:56 
Re: checking for org.omg.CORBA.OBJECT_NOT_EXIST
ke_jin@[EMAIL PROTECTED]   2007-01-24 11:15:24 
Re: checking for org.omg.CORBA.OBJECT_NOT_EXIST
Jonathan Biggar <jon@[  2007-01-25 18:48:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 22:43:01 CDT 2008.