public ReferenceFactory bind(final String name, final Servant servant) throws Exception { final POA poa = rootPOA.getValue().create_POA(name, null, transientPoaPolicies); transientPoaMap.put(name, poa); poa.set_servant(servant); poa.the_POAManager().activate(); return new PoaReferenceFactory(poa); // no servantName: in this case // name is the POA name }
public ReferenceFactory bind(final String name, final Servant servant) throws Exception { final POA poa = rootPOA.getValue().create_POA(name, null, persistentPoaPolicies); persistentPoaMap.put(name, poa); poa.set_servant(servant); poa.the_POAManager().activate(); return new PoaReferenceFactory(poa); // no servantName: in this case // name is the POA name }
public ReferenceFactory bind(final String name, final Servant servant, final Policy[] policies) throws Exception { final Policy[] poaPolicies = concatPolicies(transientPoaPolicies, policies); final POA poa = rootPOA.getValue().create_POA(name, null, poaPolicies); transientPoaMap.put(name, poa); poa.set_servant(servant); poa.the_POAManager().activate(); return new PoaReferenceFactory(poa); // no servantName: in this case // name is the POA name }
public ReferenceFactory bind(final String name, final Servant servant, final Policy[] policies) throws Exception { final Policy[] poaPolicies = concatPolicies(persistentPoaPolicies, policies); final POA poa = rootPOA.getValue().create_POA(name, null, poaPolicies); persistentPoaMap.put(name, poa); poa.set_servant(servant); poa.the_POAManager().activate(); return new PoaReferenceFactory(poa); // no servantName: in this case // name is the POA name }
this.poa.the_POAManager().activate(); } catch (Exception e) { throw IIOPLogger.ROOT_LOGGER.errorActivatingPOA(e);
RMIState(org.omg.CORBA.ORB orb, String name) { if (orb == null) { throw new NullPointerException("ORB is null"); } try { POA rootPoa = (POA) orb.resolve_initial_references("RootPOA"); poa = rootPoa.create_POA(name, null, new Policy[0]); poa.the_POAManager().activate(); } catch (AdapterAlreadyExists e) { logger.log(Level.WARNING, "Adapter already exists", e); } catch (InvalidPolicy e) { logger.log(Level.WARNING, "Invalid policy", e); } catch (InvalidName e) { logger.log(Level.WARNING, "Invalid name", e); } catch (AdapterInactive e) { logger.log(Level.WARNING, "Adapter inactive", e); } _orb = orb; _name = name; }
public ReferenceFactory bind(final String name, final Servant servant, final Policy[] policies) throws Exception { final Policy[] poaPolicies = concatPolicies(transientPoaPolicies, policies); final POA poa = rootPOA.getValue().create_POA(name, null, poaPolicies); transientPoaMap.put(name, poa); poa.set_servant(servant); poa.the_POAManager().activate(); return new PoaReferenceFactory(poa); // no servantName: in this case // name is the POA name }
public ReferenceFactory bind(final String name, final Servant servant) throws Exception { final POA poa = rootPOA.getValue().create_POA(name, null, transientPoaPolicies); transientPoaMap.put(name, poa); poa.set_servant(servant); poa.the_POAManager().activate(); return new PoaReferenceFactory(poa); // no servantName: in this case // name is the POA name }
public ReferenceFactory bind(final String name, final Servant servant, final Policy[] policies) throws Exception { final Policy[] poaPolicies = concatPolicies(persistentPoaPolicies, policies); final POA poa = rootPOA.getValue().create_POA(name, null, poaPolicies); persistentPoaMap.put(name, poa); poa.set_servant(servant); poa.the_POAManager().activate(); return new PoaReferenceFactory(poa); // no servantName: in this case // name is the POA name }
public ReferenceFactory bind(final String name, final Servant servant) throws Exception { final POA poa = rootPOA.getValue().create_POA(name, null, persistentPoaPolicies); persistentPoaMap.put(name, poa); poa.set_servant(servant); poa.the_POAManager().activate(); return new PoaReferenceFactory(poa); // no servantName: in this case // name is the POA name }
public void createPOA (String adapterName, Policy[] policies) throws AdapterAlreadyExists, InvalidPolicy, AdapterInactive, SystemException { if (_poa == null) { opLogger.i18NLogger.warn_internal_orbspecific_oa_implementations("jacorb_2_0.createPOA"); throw new AdapterInactive(); } POA childPoa = _poa.create_POA(adapterName, _poa.the_POAManager(), policies); childPoa.the_POAManager().activate(); super._poas.put(adapterName, childPoa); }
public void init (com.arjuna.orbportability.orb.core.ORB orb) throws InvalidName, AdapterInactive, SystemException { if (!_init) { _poa = POAHelper.narrow(orb.orb().resolve_initial_references( "RootPOA")); _poa.the_POAManager().activate(); _init = true; } }
public void createPOA (String adapterName, Policy[] policies) throws AdapterAlreadyExists, InvalidPolicy, AdapterInactive, SystemException { if (_poa == null) { opLogger.i18NLogger.warn_internal_orbspecific_oa_implementations("jacorb_2_0.createPOA"); throw new AdapterInactive(); } POA childPoa = _poa.create_POA(adapterName, _poa.the_POAManager(), policies); childPoa.the_POAManager().activate(); super._poas.put(adapterName, childPoa); }
public void init (com.arjuna.orbportability.orb.core.ORB orb) throws InvalidName, AdapterInactive, SystemException { if (!_init) { _poa = POAHelper.narrow(orb.orb().resolve_initial_references( "RootPOA")); _poa.the_POAManager().activate(); _init = true; } }
public void init (com.arjuna.orbportability.orb.core.ORB orb) throws InvalidName, AdapterInactive, SystemException { if (!_init) { _poa = POAHelper.narrow(orb.orb().resolve_initial_references( "RootPOA")); _poa.the_POAManager().activate(); _init = true; } }
/** * Create a child POA of the root POA. */ public void createPOA(String adapterName, Policy[] policies) throws AdapterAlreadyExists, InvalidPolicy, AdapterInactive, SystemException { if (_poa == null) { opLogger.i18NLogger.warn_internal_orbspecific_oa_implementations("javaidl_1_4.createPOA"); throw new AdapterInactive(); } POA childPoa = _poa.create_POA(adapterName, _poa.the_POAManager(), policies); childPoa.the_POAManager().activate(); super._poas.put(adapterName, childPoa); } }
/** * Create a child POA of the root POA. */ public void createPOA(String adapterName, Policy[] policies) throws AdapterAlreadyExists, InvalidPolicy, AdapterInactive, SystemException { if (_poa == null) { opLogger.i18NLogger.warn_internal_orbspecific_oa_implementations("javaidl_1_4.createPOA"); throw new AdapterInactive(); } POA childPoa = _poa.create_POA(adapterName, _poa.the_POAManager(), policies); childPoa.the_POAManager().activate(); super._poas.put(adapterName, childPoa); } }
private void initORB(String[] args) throws InvalidName, AdapterInactive { final Properties _props = ConsoleMain.parseProperties(args); orb_ = ORB.init(args, _props); PortableRemoteObjectDelegateImpl.setORB(orb_); logger_ = ((org.jacorb.orb.ORB) orb_).getConfiguration().getLogger( getClass().getName()); final Thread _orbRunner = new Thread("ORB-Thread") { public void run() { orb_.run(); } }; final POA _poa = POAHelper.narrow(orb_.resolve_initial_references("RootPOA")); _poa.the_POAManager().activate(); _orbRunner.start(); }
/** * Create a child POA of the root POA. */ public void createPOA(String adapterName, Policy[] policies) throws AdapterAlreadyExists, InvalidPolicy, AdapterInactive, SystemException { if (_poa == null) { if (opLogger.loggerI18N.isWarnEnabled()) { opLogger.loggerI18N.warn("com.arjuna.orbportability.internal.orbspecific.javaidl.oa.implementations.javaidl_1_4.norootoa", new Object[]{"javaidl_1_4.createPOA"}); } throw new AdapterInactive(); } POA childPoa = _poa.create_POA(adapterName, _poa.the_POAManager(), policies); childPoa.the_POAManager().activate(); super._poas.put(adapterName, childPoa); } }
/** * @return le root poa utilise ( statique) */ public static POA getPOA() { if (poa_ == null) { final ORB orb = getORB(); try { poa_ = POAHelper.narrow(orb.resolve_initial_references("RootPOA")); poa_.the_POAManager().activate(); } catch (final InvalidName _e) { _e.printStackTrace(); } catch (final AdapterInactive _e) { _e.printStackTrace(); } } return poa_; }