sasCurrent = (SASCurrent) this.orb.resolve_initial_references("SASCurrent"); } catch (InvalidName invalidName) { sasCurrent = null; org.jboss.iiop.tm.InboundTransactionCurrent inboundTxCurrent; try { inboundTxCurrent = (org.jboss.iiop.tm.InboundTransactionCurrent) this.orb.resolve_initial_references(org.jboss.iiop.tm.InboundTransactionCurrent.NAME); } catch (InvalidName invalidName) { inboundTxCurrent = null;
ncRef = _orb.string_to_object(ncIor); } else { ncRef = _orb.resolve_initial_references("NameService");
this.poa = POAHelper.narrow(orb.resolve_initial_references(this.poaName)); } catch (Exception e) { throw IIOPLogger.ROOT_LOGGER.errorResolvingInitRef(this.poaName, e);
Current poaCurrent = CurrentHelper.narrow(orb.resolve_initial_references("POACurrent"));
private org.omg.CORBA.Object resolve(String name) { try { return orb_.resolve_initial_references(name); } catch (org.omg.CORBA.ORBPackage.InvalidName ex) { throw new org.omg.CORBA.INITIALIZE("Initial reference not found: " + name); } }
public RemoteTypeSystem () throws InvalidName { rep = RepositoryHelper.narrow(orb.resolve_initial_references("InterfaceRepository")); }
private NamingContextExt getNamingContext(ORB orb, String nameService) throws Exception { org.omg.CORBA.Object objRef = orb.resolve_initial_references(nameService); return NamingContextExtHelper.narrow(objRef); }
public String getId(Map<String, Object> contextMap) { String id = null; try { Current currentPoa = (Current) orb .resolve_initial_references("POACurrent"); byte[] idBytes = currentPoa.get_object_id(); id = new String(idBytes); //NOPMD } catch (Exception e) { throw new CorbaBindingException("Unable to getId, current is unavailable, reason: " + e, e); } return id; }
private synchronized void _getPOACurrent() { if (_current == null) { try { _current = org.omg.PortableServer.CurrentHelper.narrow(orb.resolve_initial_references("POACurrent")); } catch (Exception e) { throw new org.omg.CORBA.INITIALIZE(e.toString()); } } }
public void orb(org.omg.CORBA.ORB orb) { try { POA _poa = POAHelper.narrow(orb .resolve_initial_references("RootPOA")); _poa.activate_object(this); } catch (org.omg.CORBA.ORBPackage.InvalidName ex) { throw new RuntimeException("ORB must have POA support", ex); } catch (org.omg.PortableServer.POAPackage.WrongPolicy ex) { throw new RuntimeException("wrong policy: " + ex.getMessage(), ex); } catch (org.omg.PortableServer.POAPackage.ServantAlreadyActive ex) { throw new RuntimeException("already active: " + ex.getMessage(), ex); } }
public Object getComponentInstance(PicoContainer container) { try { ORB orb = (ORB) container.getComponentInstance(ORB.class); POA poa = POAHelper.narrow(orb.resolve_initial_references("RootPOA")); return poa; } catch (InvalidName e) { throw new PicoInitializationException("could not resolve RootPOA", e); } }
public Object getComponentInstance(PicoContainer container) throws PicoInitializationException, PicoIntrospectionException { try { ORB orb = (ORB) container.getComponentInstance(ORB.class); Repository repository = RepositoryHelper.narrow(orb.resolve_initial_references("InterfaceRepository")); return repository; } catch (InvalidName e) { throw new PicoInitializationException("could not resolve InterfaceRepository", e); } }
public Object getComponentInstance(PicoContainer container) { try { ORB orb = (ORB) container.getComponentInstance(ORB.class); return DynAnyFactoryHelper.narrow(orb.resolve_initial_references("DynAnyFactory")); } catch (InvalidName e) { throw new PicoInitializationException("Could not resolve DynAnyFactory", e); } }
static int getServerIdForAlias( ORB orb, String applicationName ) throws ServerNotRegistered { try { Repository rep = RepositoryHelper.narrow( orb.resolve_initial_references( ORBConstants.SERVER_REPOSITORY_NAME ) ) ; int serverid = rep.getServerID(applicationName); return rep.getServerID( applicationName ) ; } catch (Exception ex) { throw (new ServerNotRegistered()); } }
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; } }
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 POA default_POA(org.omg.PortableServer.Servant self) { check(); try { return POAHelper.narrow(orb(self).resolve_initial_references("RootPOA")); } catch(InvalidName e) { throw new org.omg.CORBA.INITIALIZE(e.toString()); } }
public void init_server(String[] params) { try { org.omg.CORBA.Object obj = orb_ .resolve_initial_references("OCIAccFactoryRegistry"); org.apache.yoko.orb.OCI.AccFactoryRegistry registry = org.apache.yoko.orb.OCI.AccFactoryRegistryHelper .narrow(obj); registry.add_factory(new AccFactory_impl(orb_, listenMap_, connectionHelper_)); } catch (org.omg.CORBA.ORBPackage.InvalidName ex) { org.apache.yoko.orb.OB.Assert._OB_assert(ex); } catch (org.apache.yoko.orb.OCI.FactoryAlreadyExists ex) { throw new org.omg.CORBA.INITIALIZE("OCI IIOP plug-in already " + "installed"); } }
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); } }