Posted By:
Mike_Friedrich
Posted On:
Sunday, June 23, 2002 12:52 AM
Simply use "NameService", its the only name to get the NameService, the name is defined in the CORBA Standard.
And: "NameService" in resolve_initial_references is not the real service name of the name service.
Here are all values to be used by resolve_initial_references:
- RootPOA
- POACurrent
- InterfaceRepository
- NameService
- TradingService
- SecurityCurrent
- TransactionCurrent
- DynAnyFactory
- ORBPolicyManager
- PolicyCurrent
- NotificationService
- TypedNotificationService
- CodecFactory
- PICurrent
Which nameservice you get, depends on configurations. I guess you have registered any nameservice with the name "myNS"? Then you have to configure your ORB to use it as the default nameservice. But i don't know where in VisiBroker, read your configuration guides (or similiar docs). May be it could done through properties in java.
The CORBA Standard says (just read at http://cgi.omg.org/docs/formal/02-05-08.pdf):
You can use something like this in CORBA::ORB_init
-ORBInitRef NameService=IOR:00230021AB...
Read chapter 4.5.3 Configuring Initial Service References.
I hope this will help,
Regards, Mike