public class ReadOnlyBeanContainer extends EntityContainer implements ReadOnlyBeanRefreshEventHandler
EntityContainer.CacheProperties, EntityContainer.EJBObjectCacheVictimHandler, EntityContainer.LocalEJBObjectCacheVictimHandlerBaseContainer.ContainerInfo, BaseContainer.ContainerType, BaseContainer.PreInvokeException_maxBuckets, beanCacheDes, beanPoolDes, DEFAULT_CACHE_SIZE, DEFAULT_LOAD_FACTOR, defaultCacheEJBO, ejbContainer, ejbLocalObjectStore, ejbObjectStore, ejboRemoved, entityCtxPool, HIGH_WATER_MARK, iased, idleEJBObjectPassivator, idleLocalEJBObjectPassivator, isContainerManagedPers, isReentrant, passivationCandidates, readyStore, totalPassivationErrors, totalPassivationscacheProbeListener, 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, 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 |
ReadOnlyBeanContainer(EjbDescriptor desc,
ClassLoader loader,
SecurityManager sm) |
| 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 void |
addPooledEJB(EntityContextImpl ctx) |
protected void |
afterNewlyActivated(EntityContextImpl context) |
protected void |
callEJBLoad(javax.ejb.EntityBean ejb,
EntityContextImpl entityCtx,
boolean activeTx) |
protected void |
callEJBRemove(javax.ejb.EntityBean ejb,
EntityContextImpl context) |
protected void |
callEJBStore(javax.ejb.EntityBean ejb,
EntityContextImpl context) |
protected EntityContextImpl |
createEntityContextInstance(javax.ejb.EntityBean ejb,
EntityContainer entityContainer) |
protected void |
doConcreteContainerShutdown(boolean appBeingUndeployed) |
protected void |
forceDestroyBean(EJBContextImpl context)
Discard the bean instance.
|
protected EJBHomeInvocationHandler |
getEJBHomeInvocationHandler(Class homeIntfClass) |
protected EJBLocalHomeInvocationHandler |
getEJBLocalHomeInvocationHandler(Class homeIntfClass) |
void |
handleRefreshAllRequest()
Called from DistributedReadOnlyBeanServiceImpl when a refreshAll message
arrives at this instance
|
void |
handleRefreshRequest(Object primaryKey)
Called from DistributedReadOnlyBeanServiceImpl when a refresh message
arrives at this instance
|
protected void |
initializeHome()
Called from the ContainerFactory during initialization.
|
protected Object |
invokeFindByPrimaryKey(Method method,
EjbInvocation inv,
Object[] args) |
protected Object |
invokeTargetBeanMethod(Method beanClassMethod,
EjbInvocation inv,
Object target,
Object[] params,
SecurityManager mgr) |
Object |
postFind(EjbInvocation inv,
Object primaryKeys,
Object[] findParams)
Convert a collection of primary keys to a collection of EJBObjects.
|
void |
preInvoke(EjbInvocation inv)
Called from EJBObject/EJBHome before invoking on EJB.
|
protected void |
preInvokeNoTx(EjbInvocation inv) |
protected void |
removeBean(EJBLocalRemoteObject ejbo,
Method removeMethod,
boolean local) |
void |
setRefreshFlag(Object primaryKey) |
activateEJBFromPool, addProxyInterfacesSetClass, addReadyEJB, adjustHomeTargetMethodInfo, adjustInvocationInfo, afterBegin, afterCompletion, authorizeLocalGetPrimaryKey, authorizeRemoteGetPrimaryKey, beforeCompletion, cancelTimerTasks, checkExists, checkUnfinishedTx, createEJBLocalObjectImpl, createEJBObjectImpl, createEJBObjectStores, createReadyStore, destroyReadyStoreOnUndeploy, doEJBHomeRemove, doFlush, doTimerInvocationInit, getEJBLocalObjectForPrimaryKey, getEJBLocalObjectForPrimaryKey, getEJBLocalObjectImpl, getEJBObjectForPrimaryKey, getEJBObjectImpl, getMaxCacheSize, getMaxPoolSize, getMonitoringStatsProvider, getPooledCount, getPooledEJB, getReadyCount, getReadyEJB, getSteadyPoolSize, internalGetEJBLocalObjectImpl, internalGetEJBLocalObjectImpl, internalGetEJBLocalObjectImpl, isIdentical, onReady, passivateAndPoolEJB, passivateEJB, postCreate, postInvokeNoTx, postProcessInvocationInfo, preCreate, preFind, preInitialize, preSelect, registerMonitorableComponents, releaseContext, removeBean, removeBeanUnchecked, removeBeanUnchecked, removeContextFromReadyStore, removeIncompleteTxEJB, setEJBMetaData, setupIdleBeansPassivator, trimEvent, validateTxAttr, willInvokeWithClientTx_constructEJBContextImpl, _constructEJBInstance, addInvocationInfo, addLocalRemoteInvocationInfo, assertValidLocalObject, assertValidRemoteObject, authorize, authorizeLocalMethod, authorizeRemoteMethod, callEJBTimeout, cancelTimers, checkExceptionClientTx, checkUserTransactionLookup, cleanupInstance, containerStateToString, createCallFlowAgent, createEjbInstance, createEjbInstanceAndContext, 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, isApplicationException, isCreateHomeFinder, isEjbTimeoutMethod, isHAEnabled, isLocalInterfaceSupported, isLocalObject, isRemoteInterfaceSupported, isRemoteObject, isStopped, isSystemUncheckedException, isTimedObject, isUndeployed, lookupExtendedEntityManager, onEnteringContainer, onLeavingContainer, onShutdown, onTermination, postEjbTimeout, postInvoke, postInvoke, postInvokeTx, preInvokeTx, prepareEjbTimeoutParams, registerTimerMonitorableComponent, releaseTargetObject, resumeTransaction, scanForEjbCreateMethod, setDebugMonitorFlag, setStartedState, setStoppedState, setUndeployedState, startApplication, suspendTransaction, toString, undeploy, useClientTx, userTransactionMethodsAllowed, validateEMForClientTx, webServicePostInvokeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetClassLoaderprotected ReadOnlyBeanContainer(EjbDescriptor desc, ClassLoader loader, SecurityManager sm) throws Exception
Exceptionprotected void callEJBStore(javax.ejb.EntityBean ejb,
EntityContextImpl context)
callEJBStore in class EntityContainerprotected ComponentContext _getContext(EjbInvocation inv)
EntityContainer_getContext in class EntityContainerprotected void callEJBLoad(javax.ejb.EntityBean ejb,
EntityContextImpl entityCtx,
boolean activeTx)
throws Exception
callEJBLoad in class EntityContainerExceptionprotected void callEJBRemove(javax.ejb.EntityBean ejb,
EntityContextImpl context)
throws Exception
callEJBRemove in class EntityContainerExceptionprotected void doConcreteContainerShutdown(boolean appBeingUndeployed)
doConcreteContainerShutdown in class EntityContainerprotected void preInvokeNoTx(EjbInvocation inv)
preInvokeNoTx in class EntityContainerprotected void afterNewlyActivated(EntityContextImpl context)
afterNewlyActivated in class EntityContainerprotected void addPooledEJB(EntityContextImpl ctx)
addPooledEJB in class EntityContainerprotected void forceDestroyBean(EJBContextImpl context)
EntityContainerforceDestroyBean in class EntityContainerpublic void preInvoke(EjbInvocation inv)
BaseContainerpreInvoke in interface ContainerpreInvoke in class BaseContainerprotected Object invokeTargetBeanMethod(Method beanClassMethod, EjbInvocation inv, Object target, Object[] params, SecurityManager mgr) throws Throwable
invokeTargetBeanMethod in class BaseContainerThrowableprotected void removeBean(EJBLocalRemoteObject ejbo, Method removeMethod, boolean local) throws javax.ejb.RemoveException, javax.ejb.EJBException, RemoteException
removeBean in class EntityContainerjavax.ejb.RemoveExceptionjavax.ejb.EJBExceptionRemoteExceptionprotected void initializeHome()
throws Exception
EntityContainerinitializeHome in class EntityContainerExceptionprotected EJBHomeInvocationHandler getEJBHomeInvocationHandler(Class homeIntfClass) throws Exception
getEJBHomeInvocationHandler in class EntityContainerExceptionprotected EJBLocalHomeInvocationHandler getEJBLocalHomeInvocationHandler(Class homeIntfClass) throws Exception
getEJBLocalHomeInvocationHandler in class EntityContainerExceptionpublic void setRefreshFlag(Object primaryKey)
public void handleRefreshRequest(Object primaryKey)
ReadOnlyBeanRefreshEventHandlerhandleRefreshRequest in interface ReadOnlyBeanRefreshEventHandlerprimaryKey - the primary key that needs to be refreshedpublic void handleRefreshAllRequest()
ReadOnlyBeanRefreshEventHandlerhandleRefreshAllRequest in interface ReadOnlyBeanRefreshEventHandlerprotected EntityContextImpl createEntityContextInstance(javax.ejb.EntityBean ejb, EntityContainer entityContainer)
createEntityContextInstance in class EntityContainerprotected Object invokeFindByPrimaryKey(Method method, EjbInvocation inv, Object[] args) throws Throwable
invokeFindByPrimaryKey in class EntityContainerThrowablepublic Object postFind(EjbInvocation inv, Object primaryKeys, Object[] findParams) throws javax.ejb.FinderException
EntityContainerpostFind in interface ContainerpostFind in class EntityContainerprimaryKeys - the primaryKey or collection of primaryKeys
(Collection/Enumeration) returned from ejbFind.findParams - the parameters to the ejbFind method.javax.ejb.FinderExceptionCopyright © 2017. All rights reserved.