public void run() { try { JavaIdlRCServiceInit._orb.orb().run(); } catch (Throwable e) { e.printStackTrace(); } } }
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); } }
@Override public void stop() throws Exception { super.stop(); ORB.getInstance(TransactionManagerService.ORB_NAME).shutdown(); } }
com.arjuna.orbportability.ORB _orb; if (!com.arjuna.ats.internal.jts.ORBManager.isInitialised()) { _orb = com.arjuna.orbportability.ORB.getInstance(ORB_NAME); com.arjuna.orbportability.OA oa = com.arjuna.orbportability.OA.getRootOA(_orb); _orb.initORB((String[]) null, null); oa.initPOA(null);
myORB = ORB.getInstance("TransactionServer"); myOA = OA.getRootOA(myORB); myORB.initORB(args, null); myOA.initOA(); myORB.shutdown();
loadProperties(p); preInit = null; parseProperties(null, false); parseProperties(null, true);
protected void performPostSet (String oaName) { /** * Perform post-set operations for all OAs */ new PostSetLoader(PostSetLoader .generateOAPropertyName(ORB.ORB_INITIALISER_NS), this); /** * Perform post-set operations for all OAs */ new PostSetLoader(PostSetLoader.generateOAPropertyName( ORB.ORB_INITIALISER_NS, _associatedORB.getName()), this); /** * Perform post-set operations for this OA only */ new PreInitLoader(PostSetLoader.generateOAPropertyName( ORB.ORB_INITIALISER_NS, _associatedORB.getName(), oaName), this); }
public static final com.arjuna.orbportability.ORB getORB () { if (_theOrb == null) _theOrb = ORB.getInstance(ORB_NAME); return _theOrb; }
/** * Shutdown the ORB asynchronously. */ public synchronized void shutdown () { shutdown(false); }
/** * Retrieve an ORB instance given a unique name, if an ORB instance with this name * doesn't exist then create it. * * @param uniqueId The name of the ORB instance to retrieve. * @return The ORB instance refered to by the name given. */ public synchronized static ORB getInstance(String uniqueId) { /** * Try and find this ORB in the hashmap first if * its not there then create one and add it */ ORB orb = (ORB)_orbMap.get(uniqueId); if (orb == null) { orb = new ORB(uniqueId); _orbMap.put(uniqueId, orb); } return(orb); }
preInit = null; parseProperties(null, false); parseProperties(null, true);
myORB = ORB.getInstance("TransactionServer"); myOA = OA.getRootOA(myORB); myORB.initORB(args, null); myOA.initOA(); myORB.shutdown();
loadProperties(p); preInit = null; parseProperties(s, false); parseProperties(s, true);
ORB orb = com.arjuna.orbportability.ORB.getInstance("ClientSide"); RootOA oa = com.arjuna.orbportability.OA.getRootOA(orb); orb.initORB(new String[] {}, null);
protected void performPostSet (String oaName) { /** * Perform post-set operations for all OAs */ new PostSetLoader(PostSetLoader .generateOAPropertyName(ORB.ORB_INITIALISER_NS), this); /** * Perform post-set operations for all OAs */ new PostSetLoader(PostSetLoader.generateOAPropertyName( ORB.ORB_INITIALISER_NS, _associatedORB.getName()), this); /** * Perform post-set operations for this OA only */ new PreInitLoader(PostSetLoader.generateOAPropertyName( ORB.ORB_INITIALISER_NS, _associatedORB.getName(), oaName), this); }
private static final com.arjuna.orbportability.ORB getTheORB () { if (_theOrb == null) _theOrb = ORB.getInstance(ORB_NAME); return _theOrb; }
/** * Shutdown the ORB asynchronously. */ public synchronized void shutdown () { shutdown(false); }
/** * Retrieve an ORB instance given a unique name, if an ORB instance with * this name doesn't exist then create it. * * @param uniqueId * The name of the ORB instance to retrieve. * @return The ORB instance refered to by the name given. */ public synchronized static ORB getInstance (String uniqueId) { /** * Try and find this ORB in the hashmap first if its not there then * create one and add it */ ORB orb = (ORB) _orbMap.get(uniqueId); if (orb == null) { orb = new ORB(uniqueId); _orbMap.put(uniqueId, orb); } return (orb); }