Product: OpenFusion JacORB
Version: All versions
Description:
How to use corbaloc?
Solution:
In JacORB, either use
-DORBInitRef.NameService=[corbaloc|URL pointing to file containing IOR]
i.e. setting a system property or use
-ORBInitRef NameService=[corbaloc|URL pointing to file containing IOR]
passed in args[] to ORB.init().
(Note _no_ "D" in front of ORBInitRef) Note that the iiopname scheme can't be used for the initial reference to the Name Service, because iiopname is used to look up references in the name service.
Note(2) setting jacorb.orb.objectKeyMap.NameService is only useful on the server side, i.e. in the Name Service process. This property is used to define an alias for an object key, i.e. in your case the object with the key "NameServiceME/NameServer-POA/_root" will additionally be made accessible by the key "NameService".
Run one of the simple examples that are supplied with JacORB using the corbaloc format:
jaco -DORBInitRef.NameService=corbaloc::excalibur.prismtech.com:33567/NameService demo.arrays.Client
[configuration loaded from classpath resource
file:/home/rnc/work/OpenFusion/jacorb20v4/configuration/classes/jacorb.properties]
JacORB V 2.1.3.2, www.jacorb.org (C) Gerald Brose, XTRADYNE Technologies/FU Berlin, 3-Oct-2005 (PrismTech Build 051004-14 (with Security and DNS))
write2: Hello World! size: 4 [0]: 1 [1]: 2
#OpenFusion
#KnowledgeDocs