Class StatefulContainerFactory

java.lang.Object
com.sun.ejb.containers.BaseContainerFactory
com.sun.ejb.containers.StatefulContainerFactory
All Implemented Interfaces:
ContainerFactory, org.glassfish.hk2.api.PostConstruct

@Service(name="StatefulContainerFactory") @PerLookup public class StatefulContainerFactory extends BaseContainerFactory implements org.glassfish.hk2.api.PostConstruct, ContainerFactory
A builder for StatefulSessionContainer. Takes care of building / initializing the StatefulSessionContainer with the following classes: a) Cache (LRU / NRU / FIFO / UnBounded) b) SFSBStoreManager (Using PersistenceStrategyBuilder) c) Cache passivation task (if idle-timeout is greater than 0) d) Passivated sessions removal task (if removal-timeout is greater than 0) e) CheckpointPolicy (if ha enabled) f) SFSBUUIDUtil g) BeanLifecycleManager
Author:
Mahesh Kannan
  • Field Details

    • _logger

      protected static final Logger _logger
  • Constructor Details

    • StatefulContainerFactory

      public StatefulContainerFactory()
  • Method Details

    • postConstruct

      public void postConstruct()
      Specified by:
      postConstruct in interface org.glassfish.hk2.api.PostConstruct
    • buildComponents

      public void buildComponents(byte[] ipAddress, int port, org.glassfish.api.deployment.DeploymentContext dc) throws Exception
      Throws:
      Exception
    • createContainer

      public Container createContainer(EjbDescriptor ejbDescriptor, ClassLoader loader, org.glassfish.api.deployment.DeploymentContext deployContext) throws Exception
      Description copied from interface: ContainerFactory
      Create the appropriate Container instance and initialize it.
      Specified by:
      createContainer in interface ContainerFactory
      Parameters:
      ejbDescriptor - the deployment descriptor of the EJB for which a container is to be created.
      Throws:
      Exception