Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CORBA - OBJECT_NOT_EXIST exception

 
Dan Murphy
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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



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:



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
 
Tom Johnson
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not handle the exception and get a new reference when the exception occurs?

/Tom
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic