User guide

C-11
Cisco Transport Manager Release 9.2 GateWay/CORBA User Guide and Programmer Manual
OL-20937-01
Appendix C OSS Use Cases and Client Development
C.2.3 Running the Client
C.2.2.12 Connect StructuredPushConsumerImpl
try {
StructuredPushConsumerImpl structProxyPushConsumer = new StructuredPushConsumerImpl();
StructuredPushConsumerPOATie structuredPushConsumerTieObj = new
StructuredPushConsumerPOATie (structProxyPushConsumer, poa);
poa.activate_object(structuredPushConsumerTieObj);
StructuredPushConsumer pushCon = structuredPushConsumerTieObj._this();
structuredProxyPushSupplier.connect_structured_push_consumer(pushCon);
global_orb.run();
}
catch (ServantAlreadyActive sae) {
// Exception handling
}
catch (WrongPolicy wrongPolicyEx) {
// Exception handling
}
C.2.3 Running the Client
If the initial naming context is not resolved using the Option 2 method shown in C.2.2.2 Get Reference
to the Naming Service, page C-7, 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
org.omg.CORBA.ORBSingletonClass in your client code before Step 1 in C.2.2.1 Initialize the Client
Connection, page C-5, 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.