public class StatelessInstanceManager
extends java.lang.Object
| Constructor and Description | 
|---|
| StatelessInstanceManager(SecurityService securityService,
                        Duration accessTimeout,
                        Duration closeTimeout,
                        Pool.Builder poolBuilder,
                        int callbackThreads,
                        java.util.concurrent.ScheduledExecutorService ses) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | deploy(BeanContext beanContext) | 
| void | destroy() | 
| void | discardInstance(ThreadContext callContext,
               java.lang.Object bean)This method is called to release the semaphore in case of the business method
 throwing a system exception | 
| Instance | getInstance(ThreadContext callContext)Removes an instance from the pool and returns it for use
 by the container in business methods. | 
| void | poolInstance(ThreadContext callContext,
            java.lang.Object bean)All instances are removed from the pool in getInstance(...). | 
| void | undeploy(BeanContext beanContext) | 
public StatelessInstanceManager(SecurityService securityService, Duration accessTimeout, Duration closeTimeout, Pool.Builder poolBuilder, int callbackThreads, java.util.concurrent.ScheduledExecutorService ses)
public void destroy()
public Instance getInstance(ThreadContext callContext) throws OpenEJBException
callContext - ThreadContextOpenEJBExceptionpublic void poolInstance(ThreadContext callContext, java.lang.Object bean) throws OpenEJBException
callContext - ThreadContextbean - ObjectOpenEJBExceptionpublic void discardInstance(ThreadContext callContext, java.lang.Object bean) throws SystemException
callContext - ThreadContextbean - ObjectSystemExceptionpublic void deploy(BeanContext beanContext) throws OpenEJBException
OpenEJBExceptionpublic void undeploy(BeanContext beanContext)