[omniORB] Re: incoming LOCATE_REQUEST, how to satisfy it
Fabien COUTANT
Fabien.Coutant@steria.fr
Thu, 2 Nov 2000 17:12:08 +0100
Hello again,
I have -- at last -- found a solution that works. It's even written in
omniORB's documentation ! It's called "omniINSPOA".
I finally decided to hold my breath and dived into omniORB's sources for
the omniNames part. Then I replicated what I found to the Python side
and it worked :-)))
Just to write down the answer, I had to do the following:
inspoa = orb.resolve_initial_references ("omniINSPOA")
inspoa.activate_object_with_id (
":\\10.2.1.30:MyClass:::IFR:MyClass\0", myObject)
inspoa._get_the_POAManager ().activate ()
Explanation: apparently the CORBA INS specification requires some way to
declare objects with human-friendly keys. omniORB provides two ways to
do it, of which I used the programmed one; The other consists in using
omniMapper with a persistent POA. This is explained in the chapter
(4.5) just after omniMapper in the docs.
I didn't choose omniMapper because it looked like one can't use special
characters in object keys it remaps, and I needed to paste in a "\0".
Anyway thanks to all for the help. I hope my experience will help
others.
--
Good night,
Fabien.