Package org.jboss.as.ejb3.iiop
Class EjbIIOPService
- java.lang.Object
-
- org.jboss.as.ejb3.iiop.EjbIIOPService
-
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<EjbIIOPService>,org.jboss.msc.value.Value<EjbIIOPService>
public class EjbIIOPService extends Object implements org.jboss.msc.service.Service<EjbIIOPService>
This is an IIOP "proxy factory" forEJBHomes andEJBObjects. Rather than creating Java proxies (as the JRMP proxy factory does), this factory creates CORBA IORs. AnEjbIIOPServiceis associated to a given enterprise bean. It registers with the IIOP invoker two CORBA servants: anEjbHomeCorbaServantfor the bean'sEJBHomeand anEjbObjectCorbaServantfor the bean'sEJBObjects. NOTE: References in this document to Enterprise JavaBeans (EJB) refer to the Jakarta Enterprise Beans unless otherwise noted.
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.msc.service.ServiceNameSERVICE_NAMEThe service name
-
Constructor Summary
Constructors Constructor Description EjbIIOPService(Map<String,SkeletonStrategy> beanMethodMap, String[] beanRepositoryIds, Map<String,SkeletonStrategy> homeMethodMap, String[] homeRepositoryIds, boolean useQualifiedName, org.jboss.metadata.ejb.jboss.IIOPMetaData iiopMetaData, org.jboss.modules.Module module)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.msc.value.InjectedValue<org.omg.CosNaming.NamingContextExt>getCorbaNamingContext()org.jboss.msc.value.InjectedValue<EJBComponent>getEjbComponentInjectedValue()org.jboss.msc.value.InjectedValue<ComponentView>getHomeView()org.jboss.msc.value.InjectedValue<org.jboss.metadata.ejb.jboss.IORSecurityConfigMetaData>getIORSecConfigMetaDataInjectedValue()org.jboss.msc.value.InjectedValue<org.omg.PortableServer.POA>getIrPoa()org.jboss.msc.value.InjectedValue<org.omg.CORBA.ORB>getOrb()org.jboss.msc.value.InjectedValue<POARegistry>getPoaRegistry()org.jboss.msc.value.InjectedValue<ComponentView>getRemoteView()org.jboss.msc.value.InjectedValue<org.jboss.as.server.moduleservice.ServiceModuleLoader>getServiceModuleLoaderInjectedValue()org.jboss.msc.value.InjectedValue<com.arjuna.ats.jbossatx.jta.TransactionManagerService>getTransactionManagerInjectedValue()EjbIIOPServicegetValue()ObjecthandleForLocator(org.jboss.ejb.client.EJBLocator<?> locator)Gets a handle for the given ejb locator.static voidrebind(org.omg.CosNaming.NamingContextExt ctx, String strName, org.omg.CORBA.Object obj)(Re)binds an object to a name in a given CORBA naming context, creating any non-existent intermediate contexts along the way.org.omg.CORBA.ObjectreferenceForLocator(org.jboss.ejb.client.EJBLocator<?> locator)Returns a corba reference for the given locatorvoidstart(org.jboss.msc.service.StartContext startContext)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Constructor Detail
-
EjbIIOPService
public EjbIIOPService(Map<String,SkeletonStrategy> beanMethodMap, String[] beanRepositoryIds, Map<String,SkeletonStrategy> homeMethodMap, String[] homeRepositoryIds, boolean useQualifiedName, org.jboss.metadata.ejb.jboss.IIOPMetaData iiopMetaData, org.jboss.modules.Module module)
-
-
Method Detail
-
start
public void start(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException- Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service
-
referenceForLocator
public org.omg.CORBA.Object referenceForLocator(org.jboss.ejb.client.EJBLocator<?> locator)
Returns a corba reference for the given locator- Parameters:
locator- The locator- Returns:
- The corba reference
-
handleForLocator
public Object handleForLocator(org.jboss.ejb.client.EJBLocator<?> locator)
Gets a handle for the given ejb locator.- Parameters:
locator- The locator to get the handle for- Returns:
- The
EJBHandleorEJBHomeHandle
-
rebind
public static void rebind(org.omg.CosNaming.NamingContextExt ctx, String strName, org.omg.CORBA.Object obj) throws Exception(Re)binds an object to a name in a given CORBA naming context, creating any non-existent intermediate contexts along the way. This method is synchronized on the class object, if multiple services attempt to bind the same context name at once it will fail- Parameters:
ctx- a reference to the COSNaming service.strName- the name under which the CORBA object is to be bound.obj- the CORBA object to be bound.- Throws:
Exception- if an error occurs while binding the object.
-
getValue
public EjbIIOPService getValue() throws IllegalStateException, IllegalArgumentException
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<EjbIIOPService>- Throws:
IllegalStateExceptionIllegalArgumentException
-
getRemoteView
public org.jboss.msc.value.InjectedValue<ComponentView> getRemoteView()
-
getHomeView
public org.jboss.msc.value.InjectedValue<ComponentView> getHomeView()
-
getEjbComponentInjectedValue
public org.jboss.msc.value.InjectedValue<EJBComponent> getEjbComponentInjectedValue()
-
getOrb
public org.jboss.msc.value.InjectedValue<org.omg.CORBA.ORB> getOrb()
-
getCorbaNamingContext
public org.jboss.msc.value.InjectedValue<org.omg.CosNaming.NamingContextExt> getCorbaNamingContext()
-
getPoaRegistry
public org.jboss.msc.value.InjectedValue<POARegistry> getPoaRegistry()
-
getIrPoa
public org.jboss.msc.value.InjectedValue<org.omg.PortableServer.POA> getIrPoa()
-
getServiceModuleLoaderInjectedValue
public org.jboss.msc.value.InjectedValue<org.jboss.as.server.moduleservice.ServiceModuleLoader> getServiceModuleLoaderInjectedValue()
-
getIORSecConfigMetaDataInjectedValue
public org.jboss.msc.value.InjectedValue<org.jboss.metadata.ejb.jboss.IORSecurityConfigMetaData> getIORSecConfigMetaDataInjectedValue()
-
getTransactionManagerInjectedValue
public org.jboss.msc.value.InjectedValue<com.arjuna.ats.jbossatx.jta.TransactionManagerService> getTransactionManagerInjectedValue()
-
-