[omniORB] Interoperability with Voyager

baileyk@slxi.com baileyk@slxi.com
Fri, 21 Sep 2001 12:20:41 -0500


To use that corbaloc URI, if it is correct, one uses the string_to_object()
method on the ORB.  I point this out since the original post only mentioned
getting object references using resolve_initial_reference().

CORBA::Object_var obj = orb->string_to_object
("corbaloc::host:port/foo/bar/baz/myobject");

Then narrow to whatever interface you believe that object implements.

Kendall



                                                                                                                               
                    Duncan Grisby                                                                                              
                    <dgrisby@uk.research.att.com        To:     brk@jenkon.com                                                 
                    >                                   cc:     omniorb-list@uk.research.att.com                               
                    Sent by:                            Fax to:                                                                
                    owner-omniorb-list@uk.resear        Subject:     Re: [omniORB] Interoperability with Voyager               
                    ch.att.com                                                                                                 
                                                                                                                               
                                                                                                                               
                    09/21/2001 12:02 PM                                                                                        
                                                                                                                               
                                                                                                                               



On Friday 21 September, brk@jenkon.com wrote:

>          Thanks for your response. Given that I have an object key of the
> form foo/bar/baz/myobject, what code do I need to write to connect to it?

It that really is the form of the object key, you use a corbaloc: URI
like

  corbaloc::host:port/foo/bar/baz/myobject

However, the vast majority of ORBs put some binary octets in their
object keys, so it's quite likely that a corbaloc like that won't
work. If the corbaloc doesn't work, try to get hold of an IOR for an
object, and run catior -x on it. That will give you a hex dump of the
object key.

Cheers,

Duncan.

--
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --