public class EntityContainer extends BaseContainer implements CacheListener
The following sequence of actions happens for the EntityContainer, for each EJB lifecycle stage (note: getEJBObject, getContext, releaseContext, preInvokeTx, postInvokeTx are called from BaseContainer). 1. EJB Creation homeImpl.create, container.getContext, container.preInvokeTx, ejb.ejbCreate, container.postCreate, ejb.ejbPostCreate, container.postInvokeTx, container.releaseContext 2. EJB Finding homeImpl.find---, container.getContext, container.preInvokeTx, ejb.ejbFind---, container.postFind, container.postInvokeTx, container.releaseContext 3. EJB Invocation container.getEJBObject, ejbObject.someMethod, container.getContext, container.preInvokeTx, ejb.someMethod, container.postInvokeTx, container.releaseContext
State Management: The EntityContainer manages collections of EJBs in different states. The 5 states of an EntityBean (an EJB can be in only 1 state at a time):
| Modifier and Type | Class and Description |
|---|---|
protected static class |
EntityContainer.CacheProperties |
protected class |
EntityContainer.EJBObjectCacheVictimHandler |
protected class |
EntityContainer.LocalEJBObjectCacheVictimHandler |
BaseContainer.ContainerInfo, BaseContainer.ContainerType, BaseContainer.PreInvokeException| Modifier and Type | Field and Description |
|---|---|
protected int |
_maxBuckets |
protected BeanCacheDescriptor |
beanCacheDes |
protected BeanPoolDescriptor |
beanPoolDes |
protected int |
DEFAULT_CACHE_SIZE |
protected float |
DEFAULT_LOAD_FACTOR |
protected boolean |
defaultCacheEJBO |
protected EjbContainer |
ejbContainer |
protected EJBObjectCache |
ejbLocalObjectStore |
protected EJBObjectCache |
ejbObjectStore |
protected int |
ejboRemoved |
protected AbstractPool |
entityCtxPool |
protected static int |
HIGH_WATER_MARK |
protected IASEjbExtraDescriptors |
iased |
protected org.glassfish.persistence.ejb.entitybean.container.EntityContainer.IdleBeansPassivator |
idleEJBObjectPassivator |
protected org.glassfish.persistence.ejb.entitybean.container.EntityContainer.IdleBeansPassivator |
idleLocalEJBObjectPassivator |
protected boolean |
isContainerManagedPers |
protected boolean |
isReentrant |
protected Stack |
passivationCandidates |
protected Cache |
readyStore |
protected int |
totalPassivationErrors |
protected int |
totalPassivations |
cacheProbeListener, cacheProbeNotifier, callFlowInfo, componentId, CONTAINER_INITIALIZING, CONTAINER_ON_HOLD, CONTAINER_STARTED, CONTAINER_STOPPED, CONTAINER_UNDEPLOYED, containerInfo, containerState, containerStateManager, containerTransactionManager, containerType, debugMonitorFlag, ejbActivateMethod, ejbClass, ejbContainerUtilImpl, ejbDescriptor, ejbGeneratedOptionalLocalBusinessIntfClass, ejbHome, ejbHomeImpl, ejbHomeStub, ejbIntfMethodInfo, ejbIntfMethods, ejbLocalBusinessHome, ejbLocalBusinessHomeImpl, ejbLocalHome, ejbLocalHomeImpl, EJBLocalObject_getPrimaryKey, EJBObject_getPrimaryKey, ejbOptionalLocalBusinessHome, ejbOptionalLocalBusinessHomeImpl, ejbOptionalLocalBusinessHomeIntf, ejbPassivateMethod, ejbProbeListener, ejbProbeNotifier, ejbRemoteBusinessHome, ejbRemoteBusinessHomeImpl, ejbRemoteBusinessHomeStub, ejbRemoveMethod, envProps, executorProbeListener, hasLocalBusinessView, hasLocalHomeView, hasOptionalLocalBusinessView, hasRemoteBusinessView, hasRemoteHomeView, homeIntf, injectionManager, interceptorManager, invocationInfoMap, invocationManager, isBeanManagedTran, isLocal, isMessageDriven, isRemote, isSession, isSingleton, isStatefulSession, isStatelessSession, isWebServiceEndpoint, jcdiService, loader, localBusinessHomeIntf, localBusinessIntfs, localHomeIntf, logParams, metadata, methodMonitorMap, monitorOn, namingManager, NO_PARAMS, optIntfClassLoader, poolProbeListener, remoteBusinessHomeIntf, remoteBusinessIntfInfo, remoteHomeRefFactory, remoteIntf, scheduleIds, securityManager, sfsbSerializedClass, SINGLETON_BEAN_POOL_PROP, timerProbeListener, timerProbeNotifier, transactionManager, webServiceEndpointIntf, webServiceInvocationInfoMapSEC_CHECKED, SEC_EXCLUDED, SEC_NOT_INITIALIZED, SEC_UNCHECKED, secAttrStrings, TX_BEAN_MANAGED, TX_MANDATORY, TX_NEVER, TX_NOT_INITIALIZED, TX_NOT_SUPPORTED, TX_REQUIRED, TX_REQUIRES_NEW, TX_SUPPORTS, txAttrStrings| Modifier | Constructor and Description |
|---|---|
protected |
EntityContainer(BaseContainer.ContainerType containerType,
EjbDescriptor desc,
ClassLoader loader,
SecurityManager sm) |
protected |
EntityContainer(EjbDescriptor desc,
ClassLoader loader,
SecurityManager sm)
This constructor is called from the JarManager when a Jar is deployed.
|
| Modifier and Type | Method and Description |
|---|---|
protected ComponentContext |
_getContext(EjbInvocation inv)
Called from BaseContainer.preInvoke which is called from the EJBObject
for local and remote invocations, and from the EJBHome for create/find.
|
protected EntityContextImpl |
activateEJBFromPool(Object primaryKey,
EjbInvocation inv)
Called from getContext and getEJBWithIncompleteTx
Get an EJB in the ready state (i.e.
|
protected void |
addPooledEJB(EntityContextImpl context) |
protected void |
addProxyInterfacesSetClass(Set proxyInterfacesSet,
boolean local) |
protected void |
addReadyEJB(EntityContextImpl context) |
protected void |
adjustHomeTargetMethodInfo(InvocationInfo invInfo,
String methodName,
Class[] paramTypes) |
protected void |
adjustInvocationInfo(InvocationInfo invInfo,
Method method,
int txAttr,
boolean flushEnabled,
String methodIntf,
Class originalIntf) |
protected void |
afterBegin(EJBContextImpl ctx) |
protected void |
afterCompletion(EJBContextImpl ctx,
int status) |
protected void |
afterNewlyActivated(EntityContextImpl context) |
protected void |
authorizeLocalGetPrimaryKey(EJBLocalRemoteObject ejbObj) |
protected void |
authorizeRemoteGetPrimaryKey(EJBLocalRemoteObject ejbObj) |
protected void |
beforeCompletion(EJBContextImpl ctx) |
protected void |
callEJBLoad(javax.ejb.EntityBean ejb,
EntityContextImpl context,
boolean activeTx) |
protected void |
callEJBRemove(javax.ejb.EntityBean ejb,
EntityContextImpl context) |
protected void |
callEJBStore(javax.ejb.EntityBean ejb,
EntityContextImpl context) |
void |
cancelTimerTasks()
cancel a timer task to trim timed out entries in the cache.
|
protected void |
checkExists(EJBLocalRemoteObject ejbObj)
Check if the given EJBObject/LocalObject has been removed.
|
protected void |
checkUnfinishedTx(Transaction prevTx,
EjbInvocation inv) |
protected EJBLocalObjectImpl |
createEJBLocalObjectImpl() |
protected EJBObjectImpl |
createEJBObjectImpl()
Implementation of BaseContainer method.
|
protected void |
createEJBObjectStores(int cacheSize,
int numberOfVictimsToSelect,
long idleTimeout) |
protected EntityContextImpl |
createEntityContextInstance(javax.ejb.EntityBean ejb,
EntityContainer entityContainer) |
protected void |
createReadyStore(int cacheSize,
int numberOfVictimsToSelect,
float loadFactor,
long idleTimeout) |
protected void |
destroyReadyStoreOnUndeploy() |
protected void |
doConcreteContainerShutdown(boolean appBeingUndeployed) |
protected void |
doEJBHomeRemove(Object primaryKey,
Method removeMethod,
boolean local) |
protected void |
doFlush(EjbInvocation inv) |
protected void |
doTimerInvocationInit(EjbInvocation inv,
Object primaryKey)
This is implemented by concrete containers that support TimedObjects.
|
protected void |
forceDestroyBean(EJBContextImpl ctx)
Discard the bean instance.
|
protected EJBHomeInvocationHandler |
getEJBHomeInvocationHandler(Class homeIntfClass) |
protected EJBLocalHomeInvocationHandler |
getEJBLocalHomeInvocationHandler(Class homeIntfClass) |
javax.ejb.EJBLocalObject |
getEJBLocalObjectForPrimaryKey(Object pkey)
Called only from the Persistence Manager for EJB2.0 CMP EntityBeans.
|
javax.ejb.EJBLocalObject |
getEJBLocalObjectForPrimaryKey(Object pkey,
javax.ejb.EJBContext ctx)
Called only from the Persistence Manager for EJB2.0 CMP EntityBeans.
|
protected EJBLocalObjectImpl |
getEJBLocalObjectImpl(Object key)
Called from EJBLocalObjectImpl.getLocalObject() while deserializing
a local object reference.
|
javax.ejb.EJBObject |
getEJBObjectForPrimaryKey(Object pkey)
Called only from the Persistence Manager for EJB2.0 CMP EntityBeans.
|
protected EJBObjectImpl |
getEJBObjectImpl(byte[] streamKey)
Called when a remote EjbInvocation arrives for an EJB.
|
int |
getMaxCacheSize() |
int |
getMaxPoolSize() |
protected EjbMonitoringStatsProvider |
getMonitoringStatsProvider(String appName,
String modName,
String ejbName) |
long |
getPooledCount() |
protected EntityContextImpl |
getPooledEJB() |
long |
getReadyCount() |
protected EntityContextImpl |
getReadyEJB(EjbInvocation inv) |
int |
getSteadyPoolSize() |
protected void |
initializeHome()
Called from the ContainerFactory during initialization.
|
protected EJBLocalObjectImpl |
internalGetEJBLocalObjectImpl(Object primaryKey)
The following are private methods for implementing internal logic
for lifecyle and state management, in a reusable way.
|
protected EJBLocalObjectImpl |
internalGetEJBLocalObjectImpl(Object primaryKey,
boolean incrementRefCount) |
protected EJBLocalObjectImpl |
internalGetEJBLocalObjectImpl(Object primaryKey,
boolean incrementRefCount,
boolean cacheEJBO) |
protected Object |
invokeFindByPrimaryKey(Method method,
EjbInvocation inv,
Object[] args) |
protected boolean |
isIdentical(EJBObjectImpl ejbObjImpl,
javax.ejb.EJBObject other) |
void |
onReady()
Called when server instance is Ready
|
protected void |
passivateAndPoolEJB(EntityContextImpl context) |
protected boolean |
passivateEJB(ComponentContext ctx) |
void |
postCreate(EjbInvocation inv,
Object primaryKey)
This is called from the generated "HelloEJBHomeImpl" create* method,
after ejb.ejbCreate() has been called and before ejb.ejbPostCreate()
is called.
|
Object |
postFind(EjbInvocation inv,
Object primaryKeys,
Object[] findParams)
Convert a collection of primary keys to a collection of EJBObjects.
|
protected void |
postInvokeNoTx(EjbInvocation inv) |
protected InvocationInfo |
postProcessInvocationInfo(InvocationInfo invInfo) |
protected void |
preCreate(EjbInvocation inv,
EntityContextImpl context)
Called from getContext before the ejb.ejbCreate is called
|
protected void |
preFind(EjbInvocation inv,
EntityContextImpl context)
Called from getContext before the ejb.ejbFind* is called
|
protected void |
preInitialize(EjbDescriptor desc,
ClassLoader loader) |
protected void |
preInvokeNoTx(EjbInvocation inv) |
void |
preSelect()
Called from CMP PersistentManager
|
protected void |
registerMonitorableComponents() |
void |
releaseContext(EjbInvocation inv)
This is called from BaseContainer.postInvoke after
EntityContainer.preInvokeTx has been called.
|
protected void |
removeBean(EjbInvocation inv)
container.preInvoke() must already be done.
|
protected void |
removeBean(EJBLocalRemoteObject ejbo,
Method removeMethod,
boolean local) |
void |
removeBeanUnchecked(javax.ejb.EJBLocalObject localObj)
Remove a bean.
|
void |
removeBeanUnchecked(Object primaryKey)
Remove a bean.
|
protected void |
removeContextFromReadyStore(Object primaryKey,
EntityContextImpl context) |
protected void |
removeIncompleteTxEJB(EntityContextImpl context,
boolean updateTxBeanTable)
Called from releaseContext if ejb is removed, from afterCompletion,
and from passivateEJB.
|
protected void |
setEJBMetaData() |
org.glassfish.persistence.ejb.entitybean.container.EntityContainer.IdleBeansPassivator |
setupIdleBeansPassivator(Cache cache)
setup a timer task to trim timed out entries in the cache.
|
void |
trimEvent(Object primaryKey,
Object context)
an cached value is trimmed (to prevent cache overflow)
|
protected void |
validateTxAttr(MethodDescriptor md,
int txAttr)
Validate transaction attribute value.
|
protected boolean |
willInvokeWithClientTx(EjbInvocation inv) |
_constructEJBContextImpl, _constructEJBInstance, _createJCDIInjectionContext, _createJCDIInjectionContext, addInvocationInfo, addLocalRemoteInvocationInfo, assertValidLocalObject, assertValidRemoteObject, authorize, authorizeLocalMethod, authorizeRemoteMethod, callEJBTimeout, cancelTimers, checkExceptionClientTx, checkUserTransactionLookup, cleanupInstance, containerStateToString, createCallFlowAgent, createEjbInstanceAndContext, createEjbInstanceForInterceptors, createEjbInvocation, createEjbInvocation, createEmptyContextAndInterceptors, createMonitoringRegistry, createRemoteReferenceWithId, delistExtendedEntityManagers, doAfterBegin, enlistExtendedEntityManagers, externalPostInvoke, externalPreInvoke, findFlushEnabledAttr, getApplicationId, getClassLoader, getComponentId, getContainerClassLoader, getContainerId, getContainerType, getContext, getDebugMonitorFlag, getDescriptor, getEJBClass, getEjbDescriptor, getEJBHome, getEJBHomeStub, getEJBLocalBusinessHome, getEJBLocalHome, getEJBMetaData, getInvocationKey, getJaccEjb, getJavaGlobalJndiNamePrefix, getMonitoringMethodsArray, getMonitoringMethodsArray, getPassByReference, getPre30LifecycleMethodNames, getProtocolManager, getSecurityManager, getTargetObject, getTimeoutMethod, getTxAttr, getTxAttr, getTxAttrForLifecycleCallback, getUserTransaction, getUseThreadPoolId, incrementCreatedTimedObject, incrementDeliveredTimedObject, incrementRemovedTimedObject, initialize, initializeProtocolManager, injectEjbInstance, instantiateEJBLocalBusinessObjectImpl, instantiateEJBLocalObjectImpl, instantiateEJBLocalObjectImpl, instantiateEJBObjectImpl, instantiateEJBObjectImpl, instantiateOptionalEJBLocalBusinessObjectImpl, instantiateRemoteBusinessObjectImpl, intercept, intercept, invokeBeanMethod, invokeTargetBeanMethod, isApplicationException, isCreateHomeFinder, isEjbTimeoutMethod, isHAEnabled, isJCDIEnabled, isLocalInterfaceSupported, isLocalObject, isRemoteInterfaceSupported, isRemoteObject, isStopped, isSystemUncheckedException, isTimedObject, isUndeployed, lookupExtendedEntityManager, onEnteringContainer, onLeavingContainer, onShutdown, onTermination, postEjbTimeout, postInvoke, postInvoke, postInvokeTx, preInvoke, preInvokeTx, prepareEjbTimeoutParams, registerTimerMonitorableComponent, releaseTargetObject, resumeTransaction, scanForEjbCreateMethod, setDebugMonitorFlag, setStartedState, setStoppedState, setUndeployedState, startApplication, suspendTransaction, toString, undeploy, useClientTx, userTransactionMethodsAllowed, validateEMForClientTx, webServicePostInvokeprotected static final int HIGH_WATER_MARK
protected EJBObjectCache ejbObjectStore
protected EJBObjectCache ejbLocalObjectStore
protected Stack passivationCandidates
protected Cache readyStore
protected AbstractPool entityCtxPool
protected boolean isReentrant
protected boolean isContainerManagedPers
protected final float DEFAULT_LOAD_FACTOR
protected final int DEFAULT_CACHE_SIZE
protected int _maxBuckets
protected IASEjbExtraDescriptors iased
protected BeanCacheDescriptor beanCacheDes
protected BeanPoolDescriptor beanPoolDes
protected EjbContainer ejbContainer
protected org.glassfish.persistence.ejb.entitybean.container.EntityContainer.IdleBeansPassivator idleEJBObjectPassivator
protected org.glassfish.persistence.ejb.entitybean.container.EntityContainer.IdleBeansPassivator idleLocalEJBObjectPassivator
protected boolean defaultCacheEJBO
protected int ejboRemoved
protected int totalPassivations
protected int totalPassivationErrors
protected EntityContainer(EjbDescriptor desc, ClassLoader loader, SecurityManager sm) throws Exception
Exception - on errorprotected EntityContainer(BaseContainer.ContainerType containerType, EjbDescriptor desc, ClassLoader loader, SecurityManager sm) throws Exception
Exceptionprotected void preInitialize(EjbDescriptor desc, ClassLoader loader)
preInitialize in class BaseContainerprotected void setEJBMetaData()
throws Exception
setEJBMetaData in class BaseContainerExceptionprotected void validateTxAttr(MethodDescriptor md, int txAttr) throws javax.ejb.EJBException
BaseContainervalidateTxAttr in class BaseContainerjavax.ejb.EJBExceptionprotected void adjustHomeTargetMethodInfo(InvocationInfo invInfo, String methodName, Class[] paramTypes) throws NoSuchMethodException
adjustHomeTargetMethodInfo in class BaseContainerNoSuchMethodExceptionprotected EJBHomeInvocationHandler getEJBHomeInvocationHandler(Class homeIntfClass) throws Exception
getEJBHomeInvocationHandler in class BaseContainerExceptionprotected EJBLocalHomeInvocationHandler getEJBLocalHomeInvocationHandler(Class homeIntfClass) throws Exception
getEJBLocalHomeInvocationHandler in class BaseContainerExceptionpublic org.glassfish.persistence.ejb.entitybean.container.EntityContainer.IdleBeansPassivator setupIdleBeansPassivator(Cache cache) throws Exception
cache - cache which is used to setup the timer taskExceptionpublic void cancelTimerTasks()
protected InvocationInfo postProcessInvocationInfo(InvocationInfo invInfo)
postProcessInvocationInfo in class BaseContainerprotected void initializeHome()
throws Exception
initializeHome in class BaseContainerExceptionprotected void registerMonitorableComponents()
registerMonitorableComponents in class BaseContainerprotected EjbMonitoringStatsProvider getMonitoringStatsProvider(String appName, String modName, String ejbName)
getMonitoringStatsProvider in class BaseContainerpublic void onReady()
BaseContaineronReady in interface ContaineronReady in class BaseContainerpublic int getMaxCacheSize()
public int getSteadyPoolSize()
public int getMaxPoolSize()
public long getPooledCount()
public long getReadyCount()
protected EJBObjectImpl createEJBObjectImpl() throws javax.ejb.CreateException, RemoteException
createEJBObjectImpl in class BaseContainerjavax.ejb.CreateExceptionRemoteExceptionprotected EJBLocalObjectImpl createEJBLocalObjectImpl() throws javax.ejb.CreateException
createEJBLocalObjectImpl in class BaseContainerjavax.ejb.CreateExceptionprotected EJBObjectImpl getEJBObjectImpl(byte[] streamKey)
getEJBObjectImpl in class BaseContainerprotected EJBLocalObjectImpl getEJBLocalObjectImpl(Object key)
getEJBLocalObjectImpl in class BaseContainerprotected ComponentContext _getContext(EjbInvocation inv)
_getContext in class BaseContainerprotected boolean willInvokeWithClientTx(EjbInvocation inv)
public void releaseContext(EjbInvocation inv)
releaseContext in class BaseContainerprotected void preCreate(EjbInvocation inv, EntityContextImpl context)
public void postCreate(EjbInvocation inv, Object primaryKey) throws javax.ejb.CreateException
postCreate in interface ContainerpostCreate in class BaseContainerprimaryKey - the value returned from ejbCreate.javax.ejb.CreateExceptionprotected Object invokeFindByPrimaryKey(Method method, EjbInvocation inv, Object[] args) throws Throwable
invokeFindByPrimaryKey in class BaseContainerThrowableprotected void authorizeLocalGetPrimaryKey(EJBLocalRemoteObject ejbObj) throws javax.ejb.EJBException
authorizeLocalGetPrimaryKey in class BaseContainerjavax.ejb.EJBExceptionprotected void authorizeRemoteGetPrimaryKey(EJBLocalRemoteObject ejbObj) throws RemoteException
authorizeRemoteGetPrimaryKey in class BaseContainerRemoteExceptionprotected void preFind(EjbInvocation inv, EntityContextImpl context)
public void preSelect()
throws javax.ejb.EJBException
preSelect in interface ContainerpreSelect in class BaseContainerjavax.ejb.EJBException - Thrown if an error occurs
during the preSelect actions performed by the container.
If thrown, the remaining select query steps should be
aborted and an EJBException should be propagated
back to the application code.public Object postFind(EjbInvocation inv, Object primaryKeys, Object[] findParams) throws javax.ejb.FinderException
postFind in interface ContainerpostFind in class BaseContainerprimaryKeys - the primaryKey or collection of primaryKeys
(Collection/Enumeration) returned from ejbFind.findParams - the parameters to the ejbFind method.javax.ejb.FinderExceptionpublic javax.ejb.EJBObject getEJBObjectForPrimaryKey(Object pkey)
getEJBObjectForPrimaryKey in interface ContainergetEJBObjectForPrimaryKey in class BaseContainerpublic javax.ejb.EJBLocalObject getEJBLocalObjectForPrimaryKey(Object pkey, javax.ejb.EJBContext ctx)
getEJBLocalObjectForPrimaryKey in interface ContainergetEJBLocalObjectForPrimaryKey in class BaseContainerpkey - The primary key for which the EJBLocalObject is requiredctx - The context associated with the bean from which the accessor method is invokedpublic javax.ejb.EJBLocalObject getEJBLocalObjectForPrimaryKey(Object pkey)
getEJBLocalObjectForPrimaryKey in interface ContainergetEJBLocalObjectForPrimaryKey in class BaseContainerprotected void doEJBHomeRemove(Object primaryKey, Method removeMethod, boolean local) throws javax.ejb.RemoveException, javax.ejb.EJBException, RemoteException
doEJBHomeRemove in class BaseContainerjavax.ejb.RemoveExceptionjavax.ejb.EJBExceptionRemoteExceptionprotected void removeBean(EJBLocalRemoteObject ejbo, Method removeMethod, boolean local) throws javax.ejb.RemoveException, javax.ejb.EJBException, RemoteException
removeBean in class BaseContainerjavax.ejb.RemoveExceptionjavax.ejb.EJBExceptionRemoteExceptionprotected void removeBean(EjbInvocation inv) throws javax.ejb.RemoveException
javax.ejb.RemoveException - if an error occurs while removing the beanpublic void removeBeanUnchecked(javax.ejb.EJBLocalObject localObj)
removeBeanUnchecked in interface ContainerremoveBeanUnchecked in class BaseContainerpublic void removeBeanUnchecked(Object primaryKey)
removeBeanUnchecked in interface ContainerremoveBeanUnchecked in class BaseContainerprotected void forceDestroyBean(EJBContextImpl ctx)
forceDestroyBean in class BaseContainerprotected void checkUnfinishedTx(Transaction prevTx, EjbInvocation inv)
checkUnfinishedTx in class BaseContainerprotected void checkExists(EJBLocalRemoteObject ejbObj)
checkExists in class BaseContainerjavax.ejb.NoSuchObjectLocalException - if the object has been removed.protected void afterBegin(EJBContextImpl ctx)
afterBegin in class BaseContainerprotected void beforeCompletion(EJBContextImpl ctx)
beforeCompletion in class BaseContainerprotected void afterCompletion(EJBContextImpl ctx, int status)
afterCompletion in class BaseContainerprotected void preInvokeNoTx(EjbInvocation inv)
preInvokeNoTx in class BaseContainerprotected void postInvokeNoTx(EjbInvocation inv)
postInvokeNoTx in class BaseContainerprotected void adjustInvocationInfo(InvocationInfo invInfo, Method method, int txAttr, boolean flushEnabled, String methodIntf, Class originalIntf) throws javax.ejb.EJBException
adjustInvocationInfo in class BaseContainerjavax.ejb.EJBExceptionpublic void trimEvent(Object primaryKey, Object context)
CacheListenertrimEvent in interface CacheListenerprimaryKey - lookup keycontext - value of the cached entityprotected boolean passivateEJB(ComponentContext ctx)
passivateEJB in class BaseContainerprotected EJBLocalObjectImpl internalGetEJBLocalObjectImpl(Object primaryKey)
protected EJBLocalObjectImpl internalGetEJBLocalObjectImpl(Object primaryKey, boolean incrementRefCount)
protected EJBLocalObjectImpl internalGetEJBLocalObjectImpl(Object primaryKey, boolean incrementRefCount, boolean cacheEJBO)
protected EntityContextImpl getPooledEJB()
protected void addPooledEJB(EntityContextImpl context)
protected void passivateAndPoolEJB(EntityContextImpl context)
protected EntityContextImpl activateEJBFromPool(Object primaryKey, EjbInvocation inv)
protected void removeIncompleteTxEJB(EntityContextImpl context, boolean updateTxBeanTable)
protected boolean isIdentical(EJBObjectImpl ejbObjImpl, javax.ejb.EJBObject other) throws RemoteException
isIdentical in class BaseContainerRemoteExceptionprotected void callEJBLoad(javax.ejb.EntityBean ejb,
EntityContextImpl context,
boolean activeTx)
throws Exception
Exceptionprotected void callEJBStore(javax.ejb.EntityBean ejb,
EntityContextImpl context)
throws Exception
Exceptionprotected void callEJBRemove(javax.ejb.EntityBean ejb,
EntityContextImpl context)
throws Exception
Exceptionprotected void doTimerInvocationInit(EjbInvocation inv, Object primaryKey) throws Exception
BaseContainerdoTimerInvocationInit in class BaseContainerExceptionprotected void doConcreteContainerShutdown(boolean appBeingUndeployed)
doConcreteContainerShutdown in class BaseContainerprotected void afterNewlyActivated(EntityContextImpl context)
protected EntityContextImpl createEntityContextInstance(javax.ejb.EntityBean ejb, EntityContainer entityContainer)
protected void createReadyStore(int cacheSize,
int numberOfVictimsToSelect,
float loadFactor,
long idleTimeout)
throws Exception
Exceptionprotected void createEJBObjectStores(int cacheSize,
int numberOfVictimsToSelect,
long idleTimeout)
throws Exception
Exceptionprotected EntityContextImpl getReadyEJB(EjbInvocation inv)
protected void addReadyEJB(EntityContextImpl context)
protected void destroyReadyStoreOnUndeploy()
protected void removeContextFromReadyStore(Object primaryKey, EntityContextImpl context)
protected void addProxyInterfacesSetClass(Set proxyInterfacesSet, boolean local)
addProxyInterfacesSetClass in class BaseContainerprotected void doFlush(EjbInvocation inv)
doFlush in class BaseContainerCopyright © 2019. All rights reserved.