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>
This is an IIOP "proxy factory" for
EJBHomes and
EJBObjects. Rather than creating Java proxies (as the JRMP
proxy factory does), this factory creates CORBA IORs.
An EjbIIOPService is associated to a given enterprise bean. It
registers with the IIOP invoker two CORBA servants: an
EjbHomeCorbaServant for the bean's
EJBHome and an EjbObjectCorbaServant for the
bean's EJBObjects.
NOTE: References in this document to Enterprise JavaBeans (EJB) refer to the Jakarta Enterprise Beans unless otherwise noted.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.jboss.msc.service.ServiceNameThe service nameFields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionEjbIIOPService(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
Modifier and TypeMethodDescriptionorg.jboss.msc.value.InjectedValue<org.omg.CosNaming.NamingContextExt>org.jboss.msc.value.InjectedValue<EJBComponent>org.jboss.msc.value.InjectedValue<ComponentView>org.jboss.msc.value.InjectedValue<org.jboss.metadata.ejb.jboss.IORSecurityConfigMetaData>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>org.jboss.msc.value.InjectedValue<ComponentView>org.jboss.msc.value.InjectedValue<org.jboss.as.server.moduleservice.ServiceModuleLoader>org.jboss.msc.value.InjectedValue<com.arjuna.ats.jbossatx.jta.TransactionManagerService>getValue()handleForLocator(org.jboss.ejb.client.EJBLocator<?> locator) Gets a handle for the given ejb locator.static void(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)
-
Field Details
-
SERVICE_NAME
public static final org.jboss.msc.service.ServiceName SERVICE_NAMEThe service name
-
-
Constructor Details
-
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 Details
-
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
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
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<EjbIIOPService>- Throws:
IllegalStateExceptionIllegalArgumentException
-
getRemoteView
-
getHomeView
-
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
-
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()
-