public class StatelessInstanceManager extends Object
| Constructor and Description |
|---|
StatelessInstanceManager(SecurityService securityService,
Duration accessTimeout,
Duration closeTimeout,
Pool.Builder poolBuilder,
int callbackThreads) |
| Modifier and Type | Method and Description |
|---|---|
void |
deploy(BeanContext beanContext) |
void |
discardInstance(ThreadContext callContext,
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,
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)
public Instance getInstance(ThreadContext callContext) throws OpenEJBException
callContext - ThreadContextOpenEJBExceptionpublic void poolInstance(ThreadContext callContext, Object bean) throws OpenEJBException
callContext - ThreadContextbean - ObjectOpenEJBExceptionpublic void discardInstance(ThreadContext callContext, Object bean) throws SystemException
callContext - ThreadContextbean - ObjectSystemExceptionpublic void deploy(BeanContext beanContext) throws OpenEJBException
OpenEJBExceptionpublic void undeploy(BeanContext beanContext)
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.