public void initOA () throws InvalidName, SystemException { initOA(null); }
public void initOA (String[] args) throws InvalidName, SystemException { initPOA(args); }
public final synchronized TransactionFactory getReference () { if (_factoryRef == null) { ORBManager.getPOA().objectIsReady(this); _factoryRef = org.omg.CosTransactions.TransactionFactoryHelper.narrow(ORBManager.getPOA().corbaReference(this)); } return _factoryRef; }
public RecoveryManagerService(org.omg.CORBA.ORB theCorbaORB) throws Exception { jbossatxLogger.i18NLogger.info_jts_RecoveryManagerService_init(); /** Create an ORB portability wrapper around the CORBA ORB services orb **/ ORB orb = ORB.getInstance("jboss-atx"); org.omg.PortableServer.POA rootPOA = org.omg.PortableServer.POAHelper.narrow(theCorbaORB.resolve_initial_references("RootPOA")); orb.setOrb(theCorbaORB); OA oa = OA.getRootOA(orb); oa.setPOA(rootPOA); ORBManager.setORB(orb); ORBManager.setPOA(oa); } }
OA.getRootOA(this).destroy();
performPreInit(_oaName); parseProperties(args, true); parseProperties(args, false); performPostInit(_oaName);
public synchronized ChildOA createPOA (String adapterName, Policy[] policies) throws AdapterAlreadyExists, InvalidPolicy, AdapterInactive { if (opLogger.logger.isTraceEnabled()) { opLogger.logger.trace("OA::createPOA (" + adapterName + " )"); } if (!_oa.initialised()) { opLogger.i18NLogger.warn_OA_oanotinitialised(); throw new AdapterInactive(); } if (_defaultAdapterName == null) _defaultAdapterName = adapterName; /** * Perform OA pre-initialisation routines */ performPreInit(adapterName); /** * Create a child POA of this POA passing the policies passed in */ _oa.createPOA(adapterName, policies); ChildOA newChildOA = new ChildOA(_associatedORB, adapterName, _oa .poa(adapterName)); /** * Perform OA post-initialisation routines */ performPostInit(adapterName); return (newChildOA); }
_oa = OA.getRootOA(_orb); _oa.initOA(); } catch(RuntimeException e) { ORBManager.getPOA().addPreShutdown(new JacOrbRCShutdown());
public void setPOA (org.omg.PortableServer.POA p) throws SystemException { if (!_oa.initialised()) { _oa.rootPoa(p); performPostSet(this._oaName); } }
public ServerStrictNestedAction(ServerControl control, boolean doRegister) { super(control); if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ServerStrictNestedAction::ServerStrictNestedAction ( " + _theUid + " )"); } _registered = false; _theResource = null; if (_theControl != null) { _theResource = new org.omg.CosTransactions.SubtransactionAwareResourcePOATie( this); ORBManager.getPOA().objectIsReady(_theResource); /* * Would like to be able to attach a thread filter to this object if * process-filters aren't supported. However, currently this won't * work as we can't have two different filter types working at the * same time. ATTACH_THREAD_FILTER_(_theResource); */ if (doRegister) interposeResource(); } }
public RecoveryManagerService(org.omg.CORBA.ORB theCorbaORB) throws Exception { jbossatxLogger.i18NLogger.info_jts_RecoveryManagerService_init(); if (ORBType.JACORB == ORBInfo.getOrbEnumValue()) { // Make sure the orb is ready: TODO improve on this Class c = ClassloadingUtility.loadClass("com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.JacOrbRCServiceInit"); Method m = c.getDeclaredMethod("waitForRunningORBRunner", null); m.invoke(null, null); } /** Create an ORB portability wrapper around the CORBA ORB services orb **/ ORB orb = ORB.getInstance(TransactionManagerService.ORB_NAME); org.omg.PortableServer.POA rootPOA = org.omg.PortableServer.POAHelper.narrow(theCorbaORB.resolve_initial_references("RootPOA")); orb.setOrb(theCorbaORB); OA oa = OA.getRootOA(orb); oa.setPOA(rootPOA); ORBManager.setORB(orb); ORBManager.setPOA(oa); }
OA.getRootOA(this).destroy();
performPreInit(_oaName); parseProperties(args, true); parseProperties(args, false); performPostInit(_oaName);
public synchronized ChildOA createPOA (String adapterName, Policy[] policies) throws AdapterAlreadyExists, InvalidPolicy, AdapterInactive { if (opLogger.logger.isTraceEnabled()) { opLogger.logger.trace("OA::createPOA (" + adapterName + " )"); } if (!_oa.initialised()) { opLogger.i18NLogger.warn_OA_oanotinitialised(); throw new AdapterInactive(); } if (_defaultAdapterName == null) _defaultAdapterName = adapterName; /** * Perform OA pre-initialisation routines */ performPreInit(adapterName); /** * Create a child POA of this POA passing the policies passed in */ _oa.createPOA(adapterName, policies); ChildOA newChildOA = new ChildOA(_associatedORB, adapterName, _oa .poa(adapterName)); /** * Perform OA post-initialisation routines */ performPostInit(adapterName); return (newChildOA); }
public void setPOA (org.omg.PortableServer.POA p) throws SystemException { if (!_oa.initialised()) { _oa.rootPoa(p); performPostSet(this._oaName); } }
ORBManager.getPOA().objectIsReady(_theResource);
public final synchronized org.omg.CosTransactions.Resource getResource() { if (_theReference == null) { ORBManager.getPOA().objectIsReady(this); _theReference = org.omg.CosTransactions.ResourceHelper .narrow(ORBManager.getPOA().corbaReference(this)); } return _theReference; }
public void start(org.omg.CORBA.ORB theCorbaORB) throws Exception { jbossatxLogger.i18NLogger.info_jts_TransactionManagerService_start(); // Create an ORB portability wrapper around the CORBA ORB services orb ORB orb = ORB.getInstance("jboss-atx"); org.omg.PortableServer.POA rootPOA = org.omg.PortableServer.POAHelper.narrow(theCorbaORB.resolve_initial_references("RootPOA")); orb.setOrb(theCorbaORB); OA oa = OA.getRootOA(orb); oa.setPOA(rootPOA); try { // OTSManager won't play nice unless we explicity bootstrap the portability layer: ORBManager.setORB(orb); ORBManager.setPOA(oa); org.omg.CosTransactions.TransactionFactory factory = com.arjuna.ats.jts.OTSManager.get_factory(); final int resolver = Services.getResolver(); com.arjuna.ats.jts.TransactionServer.registerTransactionManager(resolver, orb, factory); } catch (final Exception ex) { throw new Exception(jbossatxLogger.i18NLogger.get_jts_TransactionManagerService_failed(), ex); } }
myOA = OA.getRootOA(myORB);