| Summary | This article clarifies how to pass an initial reference for a Naming Service into an application. This reference will then be resolved automatically when using resolve_initial_references("NameService") method in your application. |
|---|---|
| Environment |
Orbix 6.3 All Supported Operating Systems |
| Question/Problem Description |
How to pass an initial reference to a Naming Service into my application? Can I configure my application to contact a different Naming Service? |
| Clarifying Information | |
| Error Message | |
| Defect/Enhancement Number | |
| Cause | |
| Resolution |
An Orbix 6 based application which is passing the command line arguments into the ORB init() method with e.g. in C : CORBA::ORB_init(argc, argv) or in Java: ORB.init(args, props) can be configured to use a specific Naming Service by passing the following parameter at the command line: myapp -ORBInitRef NameService=<IOR> or myapp -ORBInitRef NameService=<corbaloc string> <IOR> denotes the Interoperable Object Reference for the Naming service to be used <corbaloc string> denotes the corbaloc URL for the Naming Service, e.g. corbaloc:iiop:1.2@LocatorHost:3075/NameService |
| Workaround | |
| Notes | |
| Attachment |
#Orbix
#KnowledgeDocs