| java.lang.Object org.apache.openejb.core.stateless.StatelessInstanceManager
StatelessInstanceManager | public class StatelessInstanceManager (Code) | | |
Inner Class :static class PoolQueue | |
beanCount | protected int beanCount(Code) | | |
poolLimit | protected int poolLimit(Code) | | |
poolQueue | protected PoolQueue poolQueue(Code) | | |
strictPooling | protected boolean strictPooling(Code) | | |
StatelessInstanceManager | public StatelessInstanceManager(TransactionManager transactionManager, SecurityService securityService, int timeout, int poolSize, boolean strictPooling)(Code) | | |
discardInstance | public void discardInstance(ThreadContext callContext, Object bean)(Code) | | This method has no work to do as all instances are removed from
the pool on getInstance(...) and not returned via poolInstance(...)
if they threw a system exception.
Parameters: callContext - Parameters: bean - |
getInstance | public Object getInstance(ThreadContext callContext) throws OpenEJBException(Code) | | Removes an instance from the pool and returns it for use
by the container in business methods.
If the pool is at it's limit the StrictPooling flag will
cause this thread to wait.
If StrictPooling is not enabled this method will create a
new stateless bean instance performing all required injection
and callbacks before returning it in a method ready state.
Parameters: callContext - throws: OpenEJBException - |
poolInstance | public void poolInstance(ThreadContext callContext, Object bean) throws OpenEJBException(Code) | | All instances are removed from the pool in getInstance(...). They are only
returned by the StatelessContainer via this method under two circumstances.
1. The business method returns normally
2. The business method throws an application exception
Instances are not returned to the pool if the business method threw a system
exception.
Parameters: callContext - Parameters: bean - throws: OpenEJBException - |
|
|