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, 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 |
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, webServicePostInvoke
protected 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 BaseContainer
protected EjbInvocation createEjbInvocation()
createEjbInvocation
in class BaseContainer
protected ComponentContext _getContext(EjbInvocation invocation) throws javax.ejb.EJBException
_getContext
in class BaseContainer
javax.ejb.EJBException
protected void releaseContext(EjbInvocation inv) throws javax.ejb.EJBException
releaseContext
in class BaseContainer
javax.ejb.EJBException
protected void initializeHome() throws Exception
BaseContainer
initializeHome
in class BaseContainer
Exception
protected void registerMonitorableComponents()
registerMonitorableComponents
in class BaseContainer
protected EjbMonitoringStatsProvider getMonitoringStatsProvider(String appName, String modName, String ejbName)
getMonitoringStatsProvider
in class BaseContainer
public void onReady()
BaseContainer
onReady
in interface Container
onReady
in class BaseContainer
public EJBObjectImpl createRemoteBusinessObjectImpl() throws javax.ejb.CreateException, RemoteException
javax.ejb.CreateException
RemoteException
public EJBObjectImpl createEJBObjectImpl() throws javax.ejb.CreateException, RemoteException
createEJBObjectImpl
in class BaseContainer
javax.ejb.CreateException
RemoteException
public EJBLocalObjectImpl createEJBLocalObjectImpl() throws javax.ejb.CreateException
createEJBLocalObjectImpl
in class BaseContainer
javax.ejb.CreateException
public EJBLocalObjectImpl createEJBLocalBusinessObjectImpl(boolean localBeanView) throws javax.ejb.CreateException
javax.ejb.CreateException
protected void removeBean(EJBLocalRemoteObject ejbo, Method removeMethod, boolean local) throws javax.ejb.RemoveException, javax.ejb.EJBException, RemoteException
removeBean
in class BaseContainer
javax.ejb.RemoveException
javax.ejb.EJBException
RemoteException
protected void forceDestroyBean(EJBContextImpl sc)
forceDestroyBean
in class BaseContainer
protected EJBObjectImpl getEJBObjectImpl(byte[] instanceKey)
getEJBObjectImpl
in class BaseContainer
protected EJBLocalObjectImpl getEJBLocalObjectImpl(Object key)
getEJBLocalObjectImpl
in class BaseContainer
public void setSingletonLifeCycleManager(SingletonLifeCycleManager lcm)
protected void checkInit()
public ComponentContext instantiateSingletonInstance()
protected EJBContextImpl _constructEJBContextImpl(Object instance)
_constructEJBContextImpl
in class BaseContainer
protected void doTimerInvocationInit(EjbInvocation inv, Object primaryKey) throws Exception
BaseContainer
doTimerInvocationInit
in class BaseContainer
Exception
public boolean userTransactionMethodsAllowed(ComponentInvocation inv)
BaseContainer
userTransactionMethodsAllowed
in interface Container
userTransactionMethodsAllowed
in class BaseContainer
protected void checkExists(EJBLocalRemoteObject ejbObj)
checkExists
in class BaseContainer
javax.ejb.NoSuchObjectLocalException
- if the object has been removed.protected void afterBegin(EJBContextImpl context)
afterBegin
in class BaseContainer
protected void beforeCompletion(EJBContextImpl context)
beforeCompletion
in class BaseContainer
protected void afterCompletion(EJBContextImpl ctx, int status)
afterCompletion
in class BaseContainer
public boolean passivateEJB(ComponentContext context)
passivateEJB
in class BaseContainer
protected void doConcreteContainerShutdown(boolean appBeingUndeployed)
doConcreteContainerShutdown
in class BaseContainer
public long getMethodReadyCount()
public int getMaxPoolSize()
public int getSteadyPoolSize()
Copyright © 2019. All rights reserved.