[omniORB] Parallel use of different namespaces

Martin Trappel 0xCDCDCDCD at gmx.at
Mon Jul 14 09:23:51 BST 2008


EntonH wrote:
> Hello omniORB-Community,
> 
> is it possible to use different nameservices to work simultaneously with
> different projects?
> e.g. Project 1 uses NameService1
>       Project 2 uses NameService2
> How do I initialize the nameservices and connect objects to them?
> 
> I read about this topic in the manual of omniORB but could not find an
> example how to deal with it.
> 

You can resolve a NamingService via a corbaloc URL. This way you can 
have even the same application resolve several different nameservices.

So instead of resolve_initial_references() you could use 
ORB_var->string_to_object("corbaloc:rir:/NameService") (rir mean resolve 
initial references) for the omniORB configured nameservice.
For any other nameservice you might want to use: 
ORB_var->string_to_object("corbaloc:[iiop]:<host>[:port]/NameService"


br,
Martin



More information about the omniORB-list mailing list