public class MdbInstanceManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MdbInstanceManager.MdbJmxControl |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<javax.management.ObjectName> |
jmxNames |
protected static Logger |
logger |
protected static java.lang.reflect.Method |
removeSessionBeanMethod |
Constructor and Description |
---|
MdbInstanceManager(SecurityService securityService,
ResourceAdapter resourceAdapter,
InboundRecovery inboundRecovery,
java.lang.Object containerID,
Duration accessTimeout,
Duration closeTimeout,
Pool.Builder poolBuilder,
int callbackThreads,
java.util.concurrent.ScheduledExecutorService ses) |
Modifier and Type | Method and Description |
---|---|
void |
deploy(BeanContext beanContext,
ActivationSpec activationSpec,
EndpointFactory endpointFactory) |
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) |
protected static final Logger logger
protected static final java.lang.reflect.Method removeSessionBeanMethod
protected final java.util.List<javax.management.ObjectName> jmxNames
public MdbInstanceManager(SecurityService securityService, ResourceAdapter resourceAdapter, InboundRecovery inboundRecovery, java.lang.Object containerID, Duration accessTimeout, Duration closeTimeout, Pool.Builder poolBuilder, int callbackThreads, java.util.concurrent.ScheduledExecutorService ses)
public void deploy(BeanContext beanContext, ActivationSpec activationSpec, EndpointFactory endpointFactory) throws OpenEJBException
OpenEJBException
public void undeploy(BeanContext beanContext)
public void destroy()
public Instance getInstance(ThreadContext callContext) throws OpenEJBException
callContext
- ThreadContextOpenEJBException
public void poolInstance(ThreadContext callContext, java.lang.Object bean) throws OpenEJBException
callContext
- ThreadContextbean
- ObjectOpenEJBException
public void discardInstance(ThreadContext callContext, java.lang.Object bean) throws SystemException
callContext
- ThreadContextbean
- ObjectSystemException