Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » ejb » plugins » [javadoc | source]
org.jboss.ejb.plugins
public class: SingletonStatelessSessionInstancePool [javadoc | source]
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
      org.jboss.system.ServiceMBeanSupport
         org.jboss.ejb.plugins.AbstractInstancePool
            org.jboss.ejb.plugins.SingletonStatelessSessionInstancePool

All Implemented Interfaces:
    XmlLoadable, AbstractInstancePoolMBean, InstancePool, org.jboss.kernel.spi.dependency.KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

Singleton pool for session beans. This lets you have singletons in EJB!
Field Summary
 EnterpriseContext ctx     
 boolean inUse     
 boolean isSynchronized     
Fields inherited from org.jboss.ejb.plugins.AbstractInstancePool:
container,  pool,  maxSize,  reclaim
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
Method from org.jboss.ejb.plugins.SingletonStatelessSessionInstancePool Summary:
add,   create,   discard,   free,   get,   getAvailableCount,   getCurrentSize,   getMaxSize,   importXml
Methods from org.jboss.ejb.plugins.AbstractInstancePool:
clear,   create,   destroyService,   discard,   free,   get,   getAvailableCount,   getContainer,   getCurrentSize,   getMaxSize,   importXml,   setContainer
Methods from org.jboss.system.ServiceMBeanSupport:
create,   createService,   destroy,   destroyService,   getDeploymentInfo,   getLog,   getName,   getNextNotificationSequenceNumber,   getObjectName,   getServer,   getServiceName,   getState,   getStateString,   jbossInternalCreate,   jbossInternalDescription,   jbossInternalDestroy,   jbossInternalLifecycle,   jbossInternalStart,   jbossInternalStop,   pojoChange,   pojoCreate,   pojoDestroy,   pojoStart,   pojoStop,   postDeregister,   postRegister,   preDeregister,   preRegister,   setKernelControllerContext,   start,   startService,   stop,   stopService,   unsetKernelControllerContext
Methods from org.jboss.mx.util.JBossNotificationBroadcasterSupport:
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ejb.plugins.SingletonStatelessSessionInstancePool Detail:
 public  void add() throws Exception 
    Add a instance in the pool
 protected EnterpriseContext create(Object instance) throws Exception 
 public synchronized  void discard(EnterpriseContext ctx) 
 public synchronized  void free(EnterpriseContext ctx) 
    Return an instance after invocation. Called in 2 cases: a) Done with finder method b) Just removed
 public synchronized EnterpriseContext get() throws Exception 
    Get the singleton instance
 public long getAvailableCount() 
 public int getCurrentSize() 
 public int getMaxSize() 
 public  void importXml(Element element) throws DeploymentException