Talk About Network



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 > checking for or...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 476 of 534
Post > Topic >>

checking for org.omg.CORBA.OBJECT_NOT_EXIST

by donalmurtagh@[EMAIL PROTECTED] Jan 22, 2007 at 07:38 AM

Hi,

I'm writing a java CORBA client, using the Visibroker ORB. Sometimes
when I call methods on the remote object references I get the following
exception

org.omg.CORBA.OBJECT_NOT_EXIST:   vmcid: OMG  minor code: 0  completed:
No

Is there some way that I can check beforehand whether this exception
will be thrown, i.e. whether the remote object still exists? I thought
that I could do it like this:

    if (myRef._non_existent()) {

    	// get a new myRef
    }

    myRef.doRemoteMethod();


But I've found that _non_existent() throws exceptions. Is there a
better way to check for the state that causes an OBJECT_NOT_EXIST
exception?

Regards,
Dan




 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 Tue May 13 23:28:49 CDT 2008.