Class EJBHomeImpl

java.lang.Object
com.sun.ejb.containers.EJBHomeImpl
All Implemented Interfaces:
jakarta.ejb.EJBHome, Remote
Direct Known Subclasses:
EJBHomeInvocationHandler

public abstract class EJBHomeImpl extends Object implements jakarta.ejb.EJBHome
This class implements the EJBHome interface. This class is also the base class for all generated concrete EJBHome implementations. At deployment time, one instance of the EJBHome is created for each EJB class in a JAR that has a remote home.
  • Field Details

    • _logger

      protected static final Logger _logger
  • Constructor Details

    • EJBHomeImpl

      protected EJBHomeImpl() throws RemoteException
      This constructor is called from an EJBHome implementation's constructor.
      Throws:
      RemoteException
  • Method Details

    • getContainer

      protected final Container getContainer()
      Called from EJBHome implementation.
    • getEJBHome

      protected jakarta.ejb.EJBHome getEJBHome()
      Get the EJBHome corresponding to an EJBHomeImpl. These objects are one and the same when the home is generated, but distinct in the case of dynamic proxies. Therefore, code can't assume it can cast an EJBHomeImpl to the EJBHome that the client uses, and vice-versa. This is overridden in the InvocationHandler.
    • createEJBObjectImpl

      public EJBObjectImpl createEJBObjectImpl() throws RemoteException, jakarta.ejb.CreateException
      Create a new EJBObject and new EJB if necessary. This is called from the generated "HelloEJBHomeImpl" create method. Return the EJBObject for the bean.
      Throws:
      RemoteException
      jakarta.ejb.CreateException
    • createRemoteBusinessObjectImpl

      public EJBObjectImpl createRemoteBusinessObjectImpl() throws RemoteException, jakarta.ejb.CreateException
      Throws:
      RemoteException
      jakarta.ejb.CreateException
    • remove

      public final void remove(jakarta.ejb.Handle handle) throws RemoteException, jakarta.ejb.RemoveException
      This is the implementation of the jakarta.ejb.EJBHome remove method.
      Specified by:
      remove in interface jakarta.ejb.EJBHome
      Throws:
      jakarta.ejb.RemoveException - on error during removal
      RemoteException
    • remove

      public final void remove(Object primaryKey) throws RemoteException, jakarta.ejb.RemoveException
      This is the implementation of the jakarta.ejb.EJBHome remove method.
      Specified by:
      remove in interface jakarta.ejb.EJBHome
      Throws:
      jakarta.ejb.RemoveException - on error during removal
      RemoteException
    • getEJBMetaData

      public final jakarta.ejb.EJBMetaData getEJBMetaData() throws RemoteException
      This is the implementation of the jakarta.ejb.EJBHome method.
      Specified by:
      getEJBMetaData in interface jakarta.ejb.EJBHome
      Throws:
      RemoteException
    • getHomeHandle

      public final jakarta.ejb.HomeHandle getHomeHandle() throws RemoteException
      This is the implementation of the jakarta.ejb.EJBHome getHomeHandle method.
      Specified by:
      getHomeHandle in interface jakarta.ejb.EJBHome
      Throws:
      RemoteException