[omniORB] Object to URI

JHJE (Jan Holst Jensen) jhje at novonordisk.com
Thu Jan 29 13:31:59 GMT 2004


> Date: Thu, 29 Jan 2004 10:18:57 +0100
> From: Serguei Kolos <Serguei.Kolos at cern.ch>
> Subject: Re: [omniORB] Object to URI
[...]
> >Corbaloc's are for permanent objects, and as such can easily be 
> >generated by humans. When you initialize the ORB you have to 
> >nail down 
> >the orbs port, and as such you can now create a corbaloc.
> >
> This is not quite true because I also have to know how the 
> object key is constructed.
> As far as I know there is no way of doing that apart from 
> learning this from particular ORB's source code.

All the examples I have seen use user-code generated object ids, e.g.
from http://www.2k-software.de/ingo/corba_putrefs.html

  PortableServer::ObjectId_var oid =
PortableServer::string_to_ObjectId("/Serverobjectname");
  PortableServer::ServantBase_var servant = xImpl;
  poa->activate_object_with_id(oid, servant);

So in these cases you only need to know the server source code, not the
ORB source code (or documentation that describes which object ids a
server publishes through the boot manager). If the object ids are
automatically assigned by the ORB you are of course in trouble unless
the server publishes the object ids by some other means as well.

Cheers

-- Jan Holst Jensen, Novo Nordisk A/S, Denmark



More information about the omniORB-list mailing list