Discussion:
[omniORB] Configure InitRef and DefaultInitRef from shell
Luca Gherardi
2012-05-16 14:33:49 UTC
Permalink
Hi all,

is there a way for configuring the InitRef and the DefaultInitRef from the shell? I'm looking for something like "export ORBInitRef = NameService=corbaname::MY_IP".
I need it for configuring these variables from a script and not from the configuration file, since the IP address of the machine where I will run the NameService is not fixed.

Moreover is it possible to start the NameService by default with this parameters: omniNames -ignoreport -start -always -ORBendPoint giop:tcp:YOUR_IP:2809 ?

Sorry if I'm asking something strange or stupid but I'm new with omniOrb.

Thank you,
Luca
Duncan Grisby
2012-05-16 17:29:15 UTC
Permalink
Post by Luca Gherardi
is there a way for configuring the InitRef and the DefaultInitRef from
the shell? I'm looking for something like "export ORBInitRef =
NameService=corbaname::MY_IP".
Yes, you can do exactly that. See

http://omniorb.sourceforge.net/omni41/omniORB/omniORB004.html#toc19

Having said that, there's nothing special about the object reference
given to ORBInitRef. You can just as easily pass a corbaname URI to
orb->string_to_object and not bother registering it as an initial
reference at all.
Post by Luca Gherardi
Moreover is it possible to start the NameService by default with this
parameters: omniNames -ignoreport -start -always -ORBendPoint
giop:tcp:YOUR_IP:2809 ?
Yes, you can start omniNames like that, but what are you trying to
achieve by doing so? omniNames by default listens on all network
interfaces, so you don't need to pin down which one it uses.

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Loading...