OpenORB.xml question
Yong Chen <[email protected]> Fri, 26 Apr 2002 19:51:01 -0700
| Newsgroups | gmane.comp.corba.openorb.devel |
|---|---|
| Message-ID | <B4DFCB7CDE2DD4118F690008C786941603F34550@tahoe.allegronetworks.com> |
Hi,
I have NameService property in OpenORB.xml as following (as usual)
<profile name="user-mods" >
<import xlink:href="${openorb.home}config/default.xml#InitRef">
<property name="NameService"
value="corbaloc::1.2@localhost:2001/NameService" />
</import>
</profile>
What I want to do is to change "localhost" dynamically, meaning the host on
which the naming service runs is not known until the naming service gets
started on a machine, so I have to change the 'localhost' in OpenORB.xml to
the real host name. I can programmatically get the ip address of the host
after naming service gets started, but how can I programmatically change it
in OpenORB.xml?
Or when using orb.resolve_initial_reference("NameService"), can I do it as
following?
orb.resolve_initial_reference("corbaloc::1.2@real_host:2001/NameService")
thanks
Yong Chen
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of:
unsubscribe openorb-dev