public abstract class AbstractSingletonContainer extends BaseContainer
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractSingletonContainer.SingletonContextFactory |
BaseContainer.ContainerInfo, BaseContainer.ContainerType, BaseContainer.PreInvokeException| Modifier and Type | Field and Description |
|---|---|
protected ClusteredSingletonLookup |
clusteredLookup |
protected ComponentContext |
singletonCtx |
protected ObjectFactory |
singletonCtxFactory |
protected boolean |
singletonInitializationFailed |
protected AtomicBoolean |
singletonInitialized |
_logger, 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 |
AbstractSingletonContainer(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 EJBContextImpl |
_constructEJBContextImpl(Object instance) |
protected ComponentContext |
_getContext(EjbInvocation invocation) |
void |
activateEJB(Object ctx,
Object instanceKey) |
protected void |
afterBegin(EJBContextImpl context) |
protected void |
afterCompletion(EJBContextImpl ctx,
int status) |
protected void |
beforeCompletion(EJBContextImpl context) |
protected void |
checkExists(EJBLocalRemoteObject ejbObj)
Check if the given EJBObject/LocalObject has been removed.
|
protected void |
checkInit() |
protected EjbInvocation |
createEjbInvocation() |
protected EjbInvocation |
createEjbInvocation(Object ejb,
ComponentContext ctx) |
EJBLocalObjectImpl |
createEJBLocalBusinessObjectImpl(boolean localBeanView)
Called during internal creation of session bean
|
EJBLocalObjectImpl |
createEJBLocalObjectImpl()
Called during client creation request through EJB LocalHome view.
|
EJBObjectImpl |
createEJBObjectImpl() |
EJBObjectImpl |
createRemoteBusinessObjectImpl() |
protected void |
doConcreteContainerShutdown(boolean appBeingUndeployed)
TODO
public void appendStats(StringBuilder sbuf) {
sbuf.append("\nSingletonContainer: ")
.append("CreateCount=").append(statCreateCount).append("; ")
.append("RemoveCount=").append(statRemoveCount).append("; ")
.append("]");
}
|
protected void |
doTimerInvocationInit(EjbInvocation inv,
Object primaryKey)
This is implemented by concrete containers that support TimedObjects.
|
protected void |
forceDestroyBean(EJBContextImpl sc)
Force destroy the EJB should be a no-op for singletons.
|
protected EJBLocalObjectImpl |
getEJBLocalObjectImpl(Object key)
Not applicable to Singletons
|
protected EJBObjectImpl |
getEJBObjectImpl(byte[] instanceKey)
Not applicable to Singletons
|
int |
getMaxPoolSize() |
long |
getMethodReadyCount() |
String |
getMonitorAttributeValues() |
protected EjbMonitoringStatsProvider |
getMonitoringStatsProvider(String appName,
String modName,
String ejbName) |
int |
getSteadyPoolSize() |
protected void |
initializeHome()
Called from the ContainerFactory during initialization.
|
ComponentContext |
instantiateSingletonInstance() |
void |
onReady()
Called when server instance is Ready
|
boolean |
passivateEJB(ComponentContext context) |
protected void |
registerMonitorableComponents() |
protected void |
releaseContext(EjbInvocation inv) |
protected void |
removeBean(EJBLocalRemoteObject ejbo,
Method removeMethod,
boolean local) |
void |
setSingletonLifeCycleManager(SingletonLifeCycleManager lcm) |
boolean |
userTransactionMethodsAllowed(ComponentInvocation inv)
EJB spec makes a distinction between access to the UserTransaction
object itself and access to its methods.
|
_constructEJBInstance, _createJCDIInjectionContext, _createJCDIInjectionContext, addInvocationInfo, addLocalRemoteInvocationInfo, addProxyInterfacesSetClass, adjustHomeTargetMethodInfo, adjustInvocationInfo, assertValidLocalObject, assertValidRemoteObject, authorize, authorizeLocalGetPrimaryKey, authorizeLocalMethod, authorizeRemoteGetPrimaryKey, authorizeRemoteMethod, callEJBTimeout, cancelTimers, checkExceptionClientTx, checkUnfinishedTx, checkUserTransactionLookup, cleanupInstance, containerStateToString, createCallFlowAgent, createEjbInstanceAndContext, createEjbInstanceForInterceptors, createEmptyContextAndInterceptors, createMonitoringRegistry, createRemoteReferenceWithId, delistExtendedEntityManagers, doAfterBegin, doEJBHomeRemove, doFlush, enlistExtendedEntityManagers, externalPostInvoke, externalPreInvoke, findFlushEnabledAttr, getApplicationId, getClassLoader, getComponentId, getContainerClassLoader, getContainerId, getContainerType, getContext, getDebugMonitorFlag, getDescriptor, getEJBClass, getEjbDescriptor, getEJBHome, getEJBHomeInvocationHandler, getEJBHomeStub, getEJBLocalBusinessHome, getEJBLocalHome, getEJBLocalHomeInvocationHandler, getEJBLocalObjectForPrimaryKey, getEJBLocalObjectForPrimaryKey, getEJBMetaData, getEJBObjectForPrimaryKey, 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, invokeFindByPrimaryKey, invokeTargetBeanMethod, isApplicationException, isCreateHomeFinder, isEjbTimeoutMethod, isHAEnabled, isIdentical, isJCDIEnabled, isLocalInterfaceSupported, isLocalObject, isRemoteInterfaceSupported, isRemoteObject, isStopped, isSystemUncheckedException, isTimedObject, isUndeployed, lookupExtendedEntityManager, onEnteringContainer, onLeavingContainer, onShutdown, onTermination, postCreate, postEjbTimeout, postFind, postInvoke, postInvoke, postInvokeNoTx, postInvokeTx, postProcessInvocationInfo, preInitialize, preInvoke, preInvokeNoTx, preInvokeTx, prepareEjbTimeoutParams, preSelect, registerTimerMonitorableComponent, releaseTargetObject, removeBeanUnchecked, removeBeanUnchecked, resumeTransaction, scanForEjbCreateMethod, setDebugMonitorFlag, setEJBMetaData, setStartedState, setStoppedState, setUndeployedState, startApplication, suspendTransaction, toString, undeploy, useClientTx, validateEMForClientTx, validateTxAttr, webServicePostInvokeprotected ObjectFactory singletonCtxFactory
protected AtomicBoolean singletonInitialized
protected boolean singletonInitializationFailed
protected volatile ComponentContext singletonCtx
protected final ClusteredSingletonLookup clusteredLookup
protected AbstractSingletonContainer(EjbDescriptor desc, ClassLoader loader, SecurityManager sm) throws Exception
Exception - on errorpublic String getMonitorAttributeValues()
protected EjbInvocation createEjbInvocation(Object ejb, ComponentContext ctx)
createEjbInvocation in class BaseContainerprotected EjbInvocation createEjbInvocation()
createEjbInvocation in class BaseContainerprotected ComponentContext _getContext(EjbInvocation invocation) throws javax.ejb.EJBException
_getContext in class BaseContainerjavax.ejb.EJBExceptionprotected void releaseContext(EjbInvocation inv) throws javax.ejb.EJBException
releaseContext in class BaseContainerjavax.ejb.EJBExceptionprotected void initializeHome()
throws Exception
BaseContainerinitializeHome 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 EJBObjectImpl createRemoteBusinessObjectImpl() throws javax.ejb.CreateException, RemoteException
javax.ejb.CreateExceptionRemoteExceptionpublic EJBObjectImpl createEJBObjectImpl() throws javax.ejb.CreateException, RemoteException
createEJBObjectImpl in class BaseContainerjavax.ejb.CreateExceptionRemoteExceptionpublic EJBLocalObjectImpl createEJBLocalObjectImpl() throws javax.ejb.CreateException
createEJBLocalObjectImpl in class BaseContainerjavax.ejb.CreateExceptionpublic EJBLocalObjectImpl createEJBLocalBusinessObjectImpl(boolean localBeanView) throws javax.ejb.CreateException
javax.ejb.CreateExceptionprotected 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 forceDestroyBean(EJBContextImpl sc)
forceDestroyBean in class BaseContainerprotected EJBObjectImpl getEJBObjectImpl(byte[] instanceKey)
getEJBObjectImpl in class BaseContainerprotected EJBLocalObjectImpl getEJBLocalObjectImpl(Object key)
getEJBLocalObjectImpl in class BaseContainerpublic void setSingletonLifeCycleManager(SingletonLifeCycleManager lcm)
protected void checkInit()
public ComponentContext instantiateSingletonInstance()
protected EJBContextImpl _constructEJBContextImpl(Object instance)
_constructEJBContextImpl in class BaseContainerprotected void doTimerInvocationInit(EjbInvocation inv, Object primaryKey) throws Exception
BaseContainerdoTimerInvocationInit in class BaseContainerExceptionpublic boolean userTransactionMethodsAllowed(ComponentInvocation inv)
BaseContaineruserTransactionMethodsAllowed in interface ContaineruserTransactionMethodsAllowed in class BaseContainerprotected void checkExists(EJBLocalRemoteObject ejbObj)
checkExists in class BaseContainerjavax.ejb.NoSuchObjectLocalException - if the object has been removed.protected void afterBegin(EJBContextImpl context)
afterBegin in class BaseContainerprotected void beforeCompletion(EJBContextImpl context)
beforeCompletion in class BaseContainerprotected void afterCompletion(EJBContextImpl ctx, int status)
afterCompletion in class BaseContainerpublic boolean passivateEJB(ComponentContext context)
passivateEJB in class BaseContainerprotected void doConcreteContainerShutdown(boolean appBeingUndeployed)
doConcreteContainerShutdown in class BaseContainerpublic long getMethodReadyCount()
public int getMaxPoolSize()
public int getSteadyPoolSize()
Copyright © 2019. All rights reserved.