[omniORB] Use of _non_existent

bjorn rohde jensen shamus@tdcadsl.dk
Tue, 12 Mar 2002 18:22:41 +0100


Hi Jimmy,

 Well, the question is interesting and a bit technical. I would say, you
are doing the right thing using the _non_existent to check an object
reference.
One possible problem is, when there is a one to many mapping of servants
and
objects. In this case you should override the _non_existent method of
the
servant to verify, that it actually incarnates the object. This merely
complicates the code for the servant, but it ought to be done, or the
behavior
of the _non_existent operation would be broken.
 You can have a look at the CORBA spec's at http://www.omg.org/ , the
_non_existent
method is described under 4.3.5 Probing for Object Non-Existance. As i
read it
the method checks for the existence of an object possibly by means of a
servant.
I would say, it is the responsibility of the servant to answer
truthfully:)

yours sincerely,

bjorn