Cisco Cisco Prime Optical 9.6 Developer's Guide
Cisco Prime Optical 9.6.3 GateWay/CORBA Programmer Reference Guide
OL-28047-01
755
StructuredPushConsumer pushCon = structuredPushConsumerTieObj._this();
structuredProxyPushSupplier.connect_structured_push_consumer(pushCon);
global_orb.run();
}
catch (ServantAlreadyActive sae) {
// Exception handling
}
catch (WrongPolicy wrongPolicyEx) {
// Exception handling
}
7.2.3 Running the Client
If the initial naming context is not resolved using the Option 2 method shown in
, the following JVM flags must be used for CORBA clients
written for Orbix 6.2, Visibroker, or jacORB:
Orbix 6.2 or later:
-ORBInitRef NameService=corbaloc:iiop:1.2@<host name>:<port>/NameServiceGWC
Visibroker:
-DORBInitRef NameService=corbaloc::<host name>:<port>/NameServiceGWC
-DORBInitRef NameService=corbaname::<host name>:<port>/NameServiceGWC
jacORB:
-DORBInitRef.NameService=corbaname::<host name>:<port>/NameServiceGWC
In addition, if you do not set the system properties org.omg.CORBA.ORBClass and
you must set them in your client launch file:
Orbix 6.2 or later:
-Dorg.omg.CORBA.ORBClass=com.iona.corba.art.artimpl.ORBImpl
-Dorg.omg.CORBA.ORBSingletonClass=com.iona.corba.art.artimpl.ORBSingleton
Visibroker:
-Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB
-Dorg.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORBSingleton
jacORB:
-Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB
-Dorg.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingleton
For other ORBs, check the related ORB programming guide.
7.2.4 Known Interoperability Issues When Using Orbix
If you use Orbix to set the following property in the jacorb.properties file:
Jacorb.compactTypecodes=0