[omniORB] Java equivalent of omniORB.cfg - Java client C++ Server
Mark Zimmerman
markzimm at frii.com
Thu Dec 29 11:05:42 GMT 2011
On Thu, Dec 29, 2011 at 06:41:02AM -0700, Rajesh Khan wrote:
> Hi i am trying to get my java client to communicate with the C++ omniORB
> server. I wanted to know is there a way to specify the naming service
> address in java.
> Like for example in C++ client we specify a config file having the
> parameter:
> *InitRef = NameService=corbaname::RemoteComputerName:2809/NameService*
> I wanted to know what would its equivalent be in java.
> I am only familiar with*
> org.omg.CORBA.Object objRef = orb.resolve_initial_references()*
>
> and tnameserv.exe which starts the java based naming server
In the Properties object you pass to org.omg.CORBA.ORB.init, set this
property:
"org.omg.CORBA.ORBInitRef"
to
"NameService=corbaname::RemoteComputerName::2809"
Or, use a command line argument.
More information about the omniORB-list
mailing list