Re: How to fix the NameService ip in VisiBroker for Java ?
Posted By:
Chockalingam_Anbalagan
Posted On:
Wednesday, August 7, 2002 01:31 PM
Generally for the local host, you must give the location as -Dvbroker.agent.enableLocator=false -DORBInitRef=NameService=iioploc://localhost:9999/NameService
for starting the server.
(9999 would be the port # for NameService, where server registers its objects)
For starting Nameservice in diff port (user defined), start the NameService as
"tnameserv -ORBInitialPort 9999"
You can specify your own port # (9999)
You can also configure the port # thru property file (say ns.properties)
vbroker.agent.enableLocator=false
vbroker.se.default=iiop_tp
vbroker.se.iiop_tp.scm.iiop_tp.listener.port=9999
While starting the NameService, use the following.
nameserv -config ns.properties
Hope this helps.
Let me know if you find any difficulties.
Chox.