public class ReadOnlyBeanContainer extends EntityContainer implements ReadOnlyBeanRefreshEventHandler
EntityContainer.CacheProperties, EntityContainer.EJBObjectCacheVictimHandler, EntityContainer.LocalEJBObjectCacheVictimHandler
BaseContainer.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, 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, namingManager, NO_PARAMS, optIntfClassLoader, poolProbeListener, remoteBusinessHomeIntf, remoteBusinessIntfInfo, remoteHomeRefFactory, remoteIntf, scheduleIds, securityManager, sfsbSerializedClass, SINGLETON_BEAN_POOL_PROP, timerProbeListener, timerProbeNotifier, transactionManager, webServiceEndpointIntf, webServiceInvocationInfoMap
SEC_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, _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, isApplicationException, isCreateHomeFinder, isEjbTimeoutMethod, isHAEnabled, isJCDIEnabled, 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, webServicePostInvoke
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getClassLoader
protected ReadOnlyBeanContainer(EjbDescriptor desc, ClassLoader loader, SecurityManager sm) throws Exception
Exception
protected void callEJBStore(javax.ejb.EntityBean ejb, EntityContextImpl context)
callEJBStore
in class EntityContainer
protected ComponentContext _getContext(EjbInvocation inv)
EntityContainer
_getContext
in class EntityContainer
protected void callEJBLoad(javax.ejb.EntityBean ejb, EntityContextImpl entityCtx, boolean activeTx) throws Exception
callEJBLoad
in class EntityContainer
Exception
protected void callEJBRemove(javax.ejb.EntityBean ejb, EntityContextImpl context) throws Exception
callEJBRemove
in class EntityContainer
Exception
protected void doConcreteContainerShutdown(boolean appBeingUndeployed)
doConcreteContainerShutdown
in class EntityContainer
protected void preInvokeNoTx(EjbInvocation inv)
preInvokeNoTx
in class EntityContainer
protected void afterNewlyActivated(EntityContextImpl context)
afterNewlyActivated
in class EntityContainer
protected void addPooledEJB(EntityContextImpl ctx)
addPooledEJB
in class EntityContainer
protected void forceDestroyBean(EJBContextImpl context)
EntityContainer
forceDestroyBean
in class EntityContainer
public void preInvoke(EjbInvocation inv)
BaseContainer
preInvoke
in interface Container
preInvoke
in class BaseContainer
protected Object invokeTargetBeanMethod(Method beanClassMethod, EjbInvocation inv, Object target, Object[] params, SecurityManager mgr) throws Throwable
invokeTargetBeanMethod
in class BaseContainer
Throwable
protected void removeBean(EJBLocalRemoteObject ejbo, Method removeMethod, boolean local) throws javax.ejb.RemoveException, javax.ejb.EJBException, RemoteException
removeBean
in class EntityContainer
javax.ejb.RemoveException
javax.ejb.EJBException
RemoteException
protected void initializeHome() throws Exception
EntityContainer
initializeHome
in class EntityContainer
Exception
protected EJBHomeInvocationHandler getEJBHomeInvocationHandler(Class homeIntfClass) throws Exception
getEJBHomeInvocationHandler
in class EntityContainer
Exception
protected EJBLocalHomeInvocationHandler getEJBLocalHomeInvocationHandler(Class homeIntfClass) throws Exception
getEJBLocalHomeInvocationHandler
in class EntityContainer
Exception
public void setRefreshFlag(Object primaryKey)
public void handleRefreshRequest(Object primaryKey)
ReadOnlyBeanRefreshEventHandler
handleRefreshRequest
in interface ReadOnlyBeanRefreshEventHandler
primaryKey
- the primary key that needs to be refreshedpublic void handleRefreshAllRequest()
ReadOnlyBeanRefreshEventHandler
handleRefreshAllRequest
in interface ReadOnlyBeanRefreshEventHandler
protected EntityContextImpl createEntityContextInstance(javax.ejb.EntityBean ejb, EntityContainer entityContainer)
createEntityContextInstance
in class EntityContainer
protected Object invokeFindByPrimaryKey(Method method, EjbInvocation inv, Object[] args) throws Throwable
invokeFindByPrimaryKey
in class EntityContainer
Throwable
public Object postFind(EjbInvocation inv, Object primaryKeys, Object[] findParams) throws javax.ejb.FinderException
EntityContainer
postFind
in interface Container
postFind
in class EntityContainer
primaryKeys
- the primaryKey or collection of primaryKeys
(Collection/Enumeration) returned from ejbFind.findParams
- the parameters to the ejbFind method.javax.ejb.FinderException
Copyright © 2021. All rights reserved.