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" 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 Details

    • SERVICE_NAME

      public static final org.jboss.msc.service.ServiceName SERVICE_NAME
      The service name
  • Constructor Details

  • Method Details

    • start

      public void start(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException
      Specified by:
      start in interface org.jboss.msc.Service
      Throws:
      org.jboss.msc.service.StartException
    • stop

      public void stop(org.jboss.msc.service.StopContext context)
      Specified by:
      stop in interface org.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 EJBHandle or EJBHomeHandle
    • 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:
      getValue in interface org.jboss.msc.value.Value<EjbIIOPService>
      Throws:
      IllegalStateException
      IllegalArgumentException
    • 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()