public class EntityContainer
extends com.sun.ejb.containers.BaseContainer
implements com.sun.appserv.util.cache.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 |
| Modifier and Type | Field and Description |
|---|---|
protected int |
_maxBuckets |
protected org.glassfish.ejb.deployment.descriptor.runtime.BeanCacheDescriptor |
beanCacheDes |
protected com.sun.enterprise.deployment.runtime.BeanPoolDescriptor |
beanPoolDes |
protected int |
DEFAULT_CACHE_SIZE |
protected float |
DEFAULT_LOAD_FACTOR |
protected boolean |
defaultCacheEJBO |
protected org.glassfish.ejb.config.EjbContainer |
ejbContainer |
protected EJBObjectCache |
ejbLocalObjectStore |
protected EJBObjectCache |
ejbObjectStore |
protected int |
ejboRemoved |
protected com.sun.ejb.containers.util.pool.AbstractPool |
entityCtxPool |
protected static int |
HIGH_WATER_MARK |
protected org.glassfish.ejb.deployment.descriptor.runtime.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 com.sun.appserv.util.cache.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, hasLocalBusinessView, hasLocalHomeView, hasOptionalLocalBusinessView, hasRemoteBusinessView, hasRemoteHomeView, homeIntf, injectionManager, interceptorManager, invocationInfoMap, invocationManager, isBeanManagedTran, isLocal, isMessageDriven, isRemote, isSession, isSingleton, isStatefulSession, isStatelessSession, isWebServiceEndpoint, 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, webServiceInvocationInfoMap| Modifier | Constructor and Description |
|---|---|
protected |
EntityContainer(com.sun.ejb.containers.BaseContainer.ContainerType containerType,
org.glassfish.ejb.deployment.descriptor.EjbDescriptor desc,
ClassLoader loader,
com.sun.enterprise.security.SecurityManager sm) |
protected |
EntityContainer(org.glassfish.ejb.deployment.descriptor.EjbDescriptor desc,
ClassLoader loader,
com.sun.enterprise.security.SecurityManager sm)
This constructor is called from the JarManager when a Jar is deployed.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.sun.ejb.ComponentContext |
_getContext(com.sun.ejb.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,
com.sun.ejb.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(com.sun.ejb.InvocationInfo invInfo,
String methodName,
Class[] paramTypes) |
protected void |
adjustInvocationInfo(com.sun.ejb.InvocationInfo invInfo,
Method method,
int txAttr,
boolean flushEnabled,
String methodIntf,
Class originalIntf) |
protected void |
afterBegin(com.sun.ejb.containers.EJBContextImpl ctx) |
protected void |
afterCompletion(com.sun.ejb.containers.EJBContextImpl ctx,
int status) |
protected void |
afterNewlyActivated(EntityContextImpl context) |
protected void |
authorizeLocalGetPrimaryKey(com.sun.ejb.containers.EJBLocalRemoteObject ejbObj) |
protected void |
authorizeRemoteGetPrimaryKey(com.sun.ejb.containers.EJBLocalRemoteObject ejbObj) |
protected void |
beforeCompletion(com.sun.ejb.containers.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(com.sun.ejb.containers.EJBLocalRemoteObject ejbObj)
Check if the given EJBObject/LocalObject has been removed.
|
protected void |
checkUnfinishedTx(Transaction prevTx,
com.sun.ejb.EjbInvocation inv) |
protected com.sun.ejb.containers.EJBLocalObjectImpl |
createEJBLocalObjectImpl() |
protected com.sun.ejb.containers.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(com.sun.ejb.EjbInvocation inv) |
protected void |
doTimerInvocationInit(com.sun.ejb.EjbInvocation inv,
Object primaryKey) |
protected void |
forceDestroyBean(com.sun.ejb.containers.EJBContextImpl ctx)
Discard the bean instance.
|
protected com.sun.ejb.containers.EJBHomeInvocationHandler |
getEJBHomeInvocationHandler(Class homeIntfClass) |
protected com.sun.ejb.containers.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 com.sun.ejb.containers.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 com.sun.ejb.containers.EJBObjectImpl |
getEJBObjectImpl(byte[] streamKey)
Called when a remote EjbInvocation arrives for an EJB.
|
int |
getMaxCacheSize() |
int |
getMaxPoolSize() |
protected com.sun.ejb.monitoring.stats.EjbMonitoringStatsProvider |
getMonitoringStatsProvider(String appName,
String modName,
String ejbName) |
long |
getPooledCount() |
protected EntityContextImpl |
getPooledEJB() |
long |
getReadyCount() |
protected EntityContextImpl |
getReadyEJB(com.sun.ejb.EjbInvocation inv) |
int |
getSteadyPoolSize() |
protected void |
initializeHome()
Called from the ContainerFactory during initialization.
|
protected com.sun.ejb.containers.EJBLocalObjectImpl |
internalGetEJBLocalObjectImpl(Object primaryKey)
The following are private methods for implementing internal logic
for lifecyle and state management, in a reusable way.
|
protected com.sun.ejb.containers.EJBLocalObjectImpl |
internalGetEJBLocalObjectImpl(Object primaryKey,
boolean incrementRefCount) |
protected com.sun.ejb.containers.EJBLocalObjectImpl |
internalGetEJBLocalObjectImpl(Object primaryKey,
boolean incrementRefCount,
boolean cacheEJBO) |
protected Object |
invokeFindByPrimaryKey(Method method,
com.sun.ejb.EjbInvocation inv,
Object[] args) |
protected boolean |
isIdentical(com.sun.ejb.containers.EJBObjectImpl ejbObjImpl,
javax.ejb.EJBObject other) |
void |
onReady() |
protected void |
passivateAndPoolEJB(EntityContextImpl context) |
protected boolean |
passivateEJB(com.sun.ejb.ComponentContext ctx) |
void |
postCreate(com.sun.ejb.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(com.sun.ejb.EjbInvocation inv,
Object primaryKeys,
Object[] findParams)
Convert a collection of primary keys to a collection of EJBObjects.
|
protected void |
postInvokeNoTx(com.sun.ejb.EjbInvocation inv) |
protected com.sun.ejb.InvocationInfo |
postProcessInvocationInfo(com.sun.ejb.InvocationInfo invInfo) |
protected void |
preCreate(com.sun.ejb.EjbInvocation inv,
EntityContextImpl context)
Called from getContext before the ejb.ejbCreate is called
|
protected void |
preFind(com.sun.ejb.EjbInvocation inv,
EntityContextImpl context)
Called from getContext before the ejb.ejbFind* is called
|
protected void |
preInitialize(org.glassfish.ejb.deployment.descriptor.EjbDescriptor desc,
ClassLoader loader) |
protected void |
preInvokeNoTx(com.sun.ejb.EjbInvocation inv) |
void |
preSelect()
Called from CMP PersistentManager
|
protected void |
registerMonitorableComponents() |
void |
releaseContext(com.sun.ejb.EjbInvocation inv)
This is called from BaseContainer.postInvoke after
EntityContainer.preInvokeTx has been called.
|
protected void |
removeBean(com.sun.ejb.EjbInvocation inv)
container.preInvoke() must already be done.
|
protected void |
removeBean(com.sun.ejb.containers.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(com.sun.appserv.util.cache.Cache cache)
setup a timer task to trim timed out entries in the cache.
|
void |
trimEvent(Object primaryKey,
Object context) |
protected void |
validateTxAttr(com.sun.enterprise.deployment.MethodDescriptor md,
int txAttr) |
protected boolean |
willInvokeWithClientTx(com.sun.ejb.EjbInvocation inv) |
_constructEJBContextImpl, _constructEJBInstance, addInvocationInfo, addLocalRemoteInvocationInfo, assertValidLocalObject, assertValidRemoteObject, authorize, authorizeLocalMethod, authorizeRemoteMethod, callEJBTimeout, cancelTimers, checkExceptionClientTx, checkUserTransactionLookup, cleanupInstance, containerStateToString, createCallFlowAgent, createEjbInstanceAndContext, createEjbInstanceForInterceptors, createEjbInvocation, createEjbInvocation, 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, initializeProtocolManager, injectEjbInstance, instantiateEJBLocalBusinessObjectImpl, instantiateEJBLocalObjectImpl, instantiateEJBLocalObjectImpl, instantiateEJBObjectImpl, instantiateEJBObjectImpl, instantiateOptionalEJBLocalBusinessObjectImpl, instantiateRemoteBusinessObjectImpl, intercept, intercept, invokeBeanMethod, invokeTargetBeanMethod, isApplicationException, isCreateHomeFinder, isEjbTimeoutMethod, isHAEnabled, 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 com.sun.appserv.util.cache.Cache readyStore
protected com.sun.ejb.containers.util.pool.AbstractPool entityCtxPool
protected boolean isReentrant
protected boolean isContainerManagedPers
protected final float DEFAULT_LOAD_FACTOR
protected final int DEFAULT_CACHE_SIZE
protected int _maxBuckets
protected org.glassfish.ejb.deployment.descriptor.runtime.IASEjbExtraDescriptors iased
protected org.glassfish.ejb.deployment.descriptor.runtime.BeanCacheDescriptor beanCacheDes
protected com.sun.enterprise.deployment.runtime.BeanPoolDescriptor beanPoolDes
protected org.glassfish.ejb.config.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(org.glassfish.ejb.deployment.descriptor.EjbDescriptor desc,
ClassLoader loader,
com.sun.enterprise.security.SecurityManager sm)
throws Exception
Exception - on errorprotected EntityContainer(com.sun.ejb.containers.BaseContainer.ContainerType containerType,
org.glassfish.ejb.deployment.descriptor.EjbDescriptor desc,
ClassLoader loader,
com.sun.enterprise.security.SecurityManager sm)
throws Exception
Exceptionprotected void preInitialize(org.glassfish.ejb.deployment.descriptor.EjbDescriptor desc,
ClassLoader loader)
preInitialize in class com.sun.ejb.containers.BaseContainerprotected void setEJBMetaData()
throws Exception
setEJBMetaData in class com.sun.ejb.containers.BaseContainerExceptionprotected void validateTxAttr(com.sun.enterprise.deployment.MethodDescriptor md,
int txAttr)
throws javax.ejb.EJBException
validateTxAttr in class com.sun.ejb.containers.BaseContainerjavax.ejb.EJBExceptionprotected void adjustHomeTargetMethodInfo(com.sun.ejb.InvocationInfo invInfo,
String methodName,
Class[] paramTypes)
throws NoSuchMethodException
adjustHomeTargetMethodInfo in class com.sun.ejb.containers.BaseContainerNoSuchMethodExceptionprotected com.sun.ejb.containers.EJBHomeInvocationHandler getEJBHomeInvocationHandler(Class homeIntfClass) throws Exception
getEJBHomeInvocationHandler in class com.sun.ejb.containers.BaseContainerExceptionprotected com.sun.ejb.containers.EJBLocalHomeInvocationHandler getEJBLocalHomeInvocationHandler(Class homeIntfClass) throws Exception
getEJBLocalHomeInvocationHandler in class com.sun.ejb.containers.BaseContainerExceptionpublic org.glassfish.persistence.ejb.entitybean.container.EntityContainer.IdleBeansPassivator setupIdleBeansPassivator(com.sun.appserv.util.cache.Cache cache)
throws Exception
cache - cache which is used to setup the timer taskExceptionpublic void cancelTimerTasks()
protected com.sun.ejb.InvocationInfo postProcessInvocationInfo(com.sun.ejb.InvocationInfo invInfo)
postProcessInvocationInfo in class com.sun.ejb.containers.BaseContainerprotected void initializeHome()
throws Exception
initializeHome in class com.sun.ejb.containers.BaseContainerExceptionprotected void registerMonitorableComponents()
registerMonitorableComponents in class com.sun.ejb.containers.BaseContainerprotected com.sun.ejb.monitoring.stats.EjbMonitoringStatsProvider getMonitoringStatsProvider(String appName, String modName, String ejbName)
getMonitoringStatsProvider in class com.sun.ejb.containers.BaseContainerpublic void onReady()
onReady in interface com.sun.ejb.ContaineronReady in class com.sun.ejb.containers.BaseContainerpublic int getMaxCacheSize()
public int getSteadyPoolSize()
public int getMaxPoolSize()
public long getPooledCount()
public long getReadyCount()
protected com.sun.ejb.containers.EJBObjectImpl createEJBObjectImpl()
throws javax.ejb.CreateException,
RemoteException
createEJBObjectImpl in class com.sun.ejb.containers.BaseContainerjavax.ejb.CreateExceptionRemoteExceptionprotected com.sun.ejb.containers.EJBLocalObjectImpl createEJBLocalObjectImpl()
throws javax.ejb.CreateException
createEJBLocalObjectImpl in class com.sun.ejb.containers.BaseContainerjavax.ejb.CreateExceptionprotected com.sun.ejb.containers.EJBObjectImpl getEJBObjectImpl(byte[] streamKey)
getEJBObjectImpl in class com.sun.ejb.containers.BaseContainerprotected com.sun.ejb.containers.EJBLocalObjectImpl getEJBLocalObjectImpl(Object key)
getEJBLocalObjectImpl in class com.sun.ejb.containers.BaseContainerprotected com.sun.ejb.ComponentContext _getContext(com.sun.ejb.EjbInvocation inv)
_getContext in class com.sun.ejb.containers.BaseContainerprotected boolean willInvokeWithClientTx(com.sun.ejb.EjbInvocation inv)
public void releaseContext(com.sun.ejb.EjbInvocation inv)
releaseContext in class com.sun.ejb.containers.BaseContainerprotected void preCreate(com.sun.ejb.EjbInvocation inv,
EntityContextImpl context)
public void postCreate(com.sun.ejb.EjbInvocation inv,
Object primaryKey)
throws javax.ejb.CreateException
postCreate in interface com.sun.ejb.ContainerpostCreate in class com.sun.ejb.containers.BaseContainerjavax.ejb.CreateExceptionprotected Object invokeFindByPrimaryKey(Method method, com.sun.ejb.EjbInvocation inv, Object[] args) throws Throwable
invokeFindByPrimaryKey in class com.sun.ejb.containers.BaseContainerThrowableprotected void authorizeLocalGetPrimaryKey(com.sun.ejb.containers.EJBLocalRemoteObject ejbObj)
throws javax.ejb.EJBException
authorizeLocalGetPrimaryKey in class com.sun.ejb.containers.BaseContainerjavax.ejb.EJBExceptionprotected void authorizeRemoteGetPrimaryKey(com.sun.ejb.containers.EJBLocalRemoteObject ejbObj)
throws RemoteException
authorizeRemoteGetPrimaryKey in class com.sun.ejb.containers.BaseContainerRemoteExceptionprotected void preFind(com.sun.ejb.EjbInvocation inv,
EntityContextImpl context)
public void preSelect()
throws javax.ejb.EJBException
preSelect in interface com.sun.ejb.ContainerpreSelect in class com.sun.ejb.containers.BaseContainerjavax.ejb.EJBExceptionpublic Object postFind(com.sun.ejb.EjbInvocation inv, Object primaryKeys, Object[] findParams) throws javax.ejb.FinderException
postFind in interface com.sun.ejb.ContainerpostFind in class com.sun.ejb.containers.BaseContainerjavax.ejb.FinderExceptionpublic javax.ejb.EJBObject getEJBObjectForPrimaryKey(Object pkey)
getEJBObjectForPrimaryKey in interface com.sun.ejb.ContainergetEJBObjectForPrimaryKey in class com.sun.ejb.containers.BaseContainerpublic javax.ejb.EJBLocalObject getEJBLocalObjectForPrimaryKey(Object pkey, javax.ejb.EJBContext ctx)
getEJBLocalObjectForPrimaryKey in interface com.sun.ejb.ContainergetEJBLocalObjectForPrimaryKey in class com.sun.ejb.containers.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 com.sun.ejb.ContainergetEJBLocalObjectForPrimaryKey in class com.sun.ejb.containers.BaseContainerprotected void doEJBHomeRemove(Object primaryKey, Method removeMethod, boolean local) throws javax.ejb.RemoveException, javax.ejb.EJBException, RemoteException
doEJBHomeRemove in class com.sun.ejb.containers.BaseContainerjavax.ejb.RemoveExceptionjavax.ejb.EJBExceptionRemoteExceptionprotected void removeBean(com.sun.ejb.containers.EJBLocalRemoteObject ejbo,
Method removeMethod,
boolean local)
throws javax.ejb.RemoveException,
javax.ejb.EJBException,
RemoteException
removeBean in class com.sun.ejb.containers.BaseContainerjavax.ejb.RemoveExceptionjavax.ejb.EJBExceptionRemoteExceptionprotected void removeBean(com.sun.ejb.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 com.sun.ejb.ContainerremoveBeanUnchecked in class com.sun.ejb.containers.BaseContainerpublic void removeBeanUnchecked(Object primaryKey)
removeBeanUnchecked in interface com.sun.ejb.ContainerremoveBeanUnchecked in class com.sun.ejb.containers.BaseContainerprotected void forceDestroyBean(com.sun.ejb.containers.EJBContextImpl ctx)
forceDestroyBean in class com.sun.ejb.containers.BaseContainerprotected void checkUnfinishedTx(Transaction prevTx, com.sun.ejb.EjbInvocation inv)
checkUnfinishedTx in class com.sun.ejb.containers.BaseContainerprotected void checkExists(com.sun.ejb.containers.EJBLocalRemoteObject ejbObj)
checkExists in class com.sun.ejb.containers.BaseContainerjavax.ejb.NoSuchObjectLocalException - if the object has been removed.protected void afterBegin(com.sun.ejb.containers.EJBContextImpl ctx)
afterBegin in class com.sun.ejb.containers.BaseContainerprotected void beforeCompletion(com.sun.ejb.containers.EJBContextImpl ctx)
beforeCompletion in class com.sun.ejb.containers.BaseContainerprotected void afterCompletion(com.sun.ejb.containers.EJBContextImpl ctx,
int status)
afterCompletion in class com.sun.ejb.containers.BaseContainerprotected void preInvokeNoTx(com.sun.ejb.EjbInvocation inv)
preInvokeNoTx in class com.sun.ejb.containers.BaseContainerprotected void postInvokeNoTx(com.sun.ejb.EjbInvocation inv)
postInvokeNoTx in class com.sun.ejb.containers.BaseContainerprotected void adjustInvocationInfo(com.sun.ejb.InvocationInfo invInfo,
Method method,
int txAttr,
boolean flushEnabled,
String methodIntf,
Class originalIntf)
throws javax.ejb.EJBException
adjustInvocationInfo in class com.sun.ejb.containers.BaseContainerjavax.ejb.EJBExceptionpublic void trimEvent(Object primaryKey, Object context)
trimEvent in interface com.sun.appserv.util.cache.CacheListenerprotected boolean passivateEJB(com.sun.ejb.ComponentContext ctx)
passivateEJB in class com.sun.ejb.containers.BaseContainerprotected com.sun.ejb.containers.EJBLocalObjectImpl internalGetEJBLocalObjectImpl(Object primaryKey)
protected com.sun.ejb.containers.EJBLocalObjectImpl internalGetEJBLocalObjectImpl(Object primaryKey, boolean incrementRefCount)
protected com.sun.ejb.containers.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, com.sun.ejb.EjbInvocation inv)
protected void removeIncompleteTxEJB(EntityContextImpl context, boolean updateTxBeanTable)
protected boolean isIdentical(com.sun.ejb.containers.EJBObjectImpl ejbObjImpl,
javax.ejb.EJBObject other)
throws RemoteException
isIdentical in class com.sun.ejb.containers.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(com.sun.ejb.EjbInvocation inv,
Object primaryKey)
throws Exception
doTimerInvocationInit in class com.sun.ejb.containers.BaseContainerExceptionprotected void doConcreteContainerShutdown(boolean appBeingUndeployed)
doConcreteContainerShutdown in class com.sun.ejb.containers.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(com.sun.ejb.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 com.sun.ejb.containers.BaseContainerprotected void doFlush(com.sun.ejb.EjbInvocation inv)
doFlush in class com.sun.ejb.containers.BaseContainerCopyright © 2017–2019 Eclipse Foundation. All rights reserved.