FileDocCategorySizeDatePackage
ContainerFactory.javaAPI DocGlassfish v2 API4485Fri May 04 22:32:54 BST 2007com.sun.ejb

ContainerFactory

public interface ContainerFactory
ContainerFactory creates the appropriate Container instance (StatefulSessionContainer, StatelessSessionContainer, EntityContainer, MessageBeanContainer) and initializes it. It is also a factory for EJBObject/Home instances which are needed by the Protocol Manager when a remote invocation arrives.

Fields Summary
Constructors Summary
Methods Summary
public ContainercreateContainer(com.sun.enterprise.deployment.EjbDescriptor ejbDescriptor, java.lang.ClassLoader loader, com.sun.enterprise.SecurityManager sm, com.sun.enterprise.config.ConfigContext dynamicConfigContext)
Create the appropriate Container instance and initialize it.

param
ejbDescriptor the deployment descriptor of the EJB for which a container is to be created.

public ContainergetContainer(long ejbId)
Get the container instance corresponding to the given EJB id.

public java.lang.ObjectgetEJBContextObject(java.lang.String contextType)

public com.sun.enterprise.deployment.EjbDescriptorgetEjbDescriptor(long ejbId)
Return the EjbDescriptor for the given ejbId.

public javax.transaction.TransactionManagergetTransactionMgr()
Return the container factory's TransactionManager object. Called from SerialContext during JNDI lookup at "java:pm/TransactionManager". Note that the container's TransactionManager is a wrapper over the real TM.

public voidinitEJBTimerService()
EJB Timer Service operations.

public java.util.EnumerationlistContainers()
List all container instances in this JVM.

public javax.persistence.EntityManagerlookupExtendedEntityManager(javax.persistence.EntityManagerFactory factory)
Register an EntityManager with EXTENDED persistence context for the current ejb component. Only applicable for stateful session beans.

public voidremoveContainer(long ejbId)
Remove the container instance corresponding to the given EJB id.

public voidrestoreEJBTimers()

public voidshutdownEJBTimerService()