Class StatefulSessionComponent
java.lang.Object
org.jboss.as.ee.component.BasicComponent
org.jboss.as.ejb3.component.EJBComponent
org.jboss.as.ejb3.component.session.SessionBeanComponent
org.jboss.as.ejb3.component.stateful.StatefulSessionComponent
- All Implemented Interfaces:
Component,StatefulSessionBeanInstanceFactory<StatefulSessionComponentInstance>,org.jboss.as.server.suspend.ServerActivityCallback
public class StatefulSessionComponent
extends SessionBeanComponent
implements StatefulSessionBeanInstanceFactory<StatefulSessionComponentInstance>
Stateful Session Bean
- Author:
- Carlo de Wolf
-
Field Summary
Fields inherited from class org.jboss.as.ejb3.component.session.SessionBeanComponent
beanLevelAccessTimeout -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStatefulSessionComponent(StatefulSessionComponentCreateService ejbComponentCreateService) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected StatefulSessionComponentInstanceconstructComponentInstance(ManagedReference instance, boolean invokePostConstruct) protected StatefulSessionComponentInstanceconstructComponentInstance(ManagedReference instance, boolean invokePostConstruct, Map<Object, Object> context) Create a new instance of this component.createInstance(Object instance) protected voidcreateInterceptors(org.jboss.invocation.InterceptorFactoryContext context) org.jboss.ejb.client.SessionIDorg.jboss.ejb.client.SessionIDcreates a session using the global request controller.voiddone()getAccessTimeout(Method method) Returns theAccessTimeoutapplicable to given methodorg.jboss.invocation.Interceptororg.jboss.invocation.Interceptororg.jboss.invocation.Interceptor<T> TgetBusinessObject(Class<T> businessInterface, org.jboss.invocation.InterceptorContext context) StatefulSessionBeanCache<org.jboss.ejb.client.SessionID,StatefulSessionComponentInstance> getCache()org.jboss.invocation.Interceptorjakarta.ejb.EJBLocalObjectgetEJBLocalObject(org.jboss.invocation.InterceptorContext ctx) jakarta.ejb.EJBObjectgetEJBObject(org.jboss.invocation.InterceptorContext ctx) org.jboss.invocation.Interceptororg.jboss.invocation.Interceptorprotected org.jboss.ejb.client.SessionIDgetSessionIdOf(org.jboss.invocation.InterceptorContext ctx) voidinit()protected BasicComponentInstanceinstantiateComponentInstance(org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method, org.jboss.invocation.Interceptor> methodInterceptors, Map<Object, Object> context) booleanisRemotable(Throwable throwable) booleanshouldDiscard(Exception ex, Method method) Methods inherited from class org.jboss.as.ejb3.component.session.SessionBeanComponent
getAsynchronousExecutor, getRollbackOnly, setRollbackOnlyMethods inherited from class org.jboss.as.ejb3.component.EJBComponent
createViewInstanceProxy, createViewInstanceProxy, getApplicationException, getApplicationName, getCallerPrincipal, getComponentDescription, getControlPoint, getCurrentTransactionAttribute, getDistinctName, getEarApplicationName, getEJBHome, getEJBLocalHome, getEjbLocalObjectType, getEjbLocalObjectViewServiceName, getEjbObjectType, getEjbObjectViewServiceName, getEjbSuspendHandlerService, getIdentityOutflowFunction, getIncomingRunAsIdentity, getInvocationMetrics, getModuleName, getSecurityDomain, getSecurityMetaData, getShutDownInterceptorFactory, getTimeoutInterceptors, getTimeoutMethod, getTimerService, getTransactionAttributeType, getTransactionAttributeType, getTransactionAttributeType, getTransactionManager, getTransactionSynchronizationRegistry, getTransactionTimeout, getTransactionTimeout, getUserTransaction, isBeanManagedTransaction, isCallerInRole, isExceptionLoggingEnabled, isSecurityDomainKnown, isStatisticsEnabled, isTransactionAttributeTypeExplicit, lookup, setIncomingRunAsIdentity, stopMethods inherited from class org.jboss.as.ee.component.BasicComponent
componentInstanceCreated, getComponentClass, getComponentName, getCreateServiceName, getInstance, getNamespaceContextSelector, serviceNameOf, start, toString, waitForComponentStart
-
Constructor Details
-
StatefulSessionComponent
Construct a new instance.- Parameters:
ejbComponentCreateService- the component configuration
-
-
Method Details
-
createInstance
Description copied from interface:StatefulSessionBeanInstanceFactoryCreate a new instance of this component. This may be invoked by a component interceptor, a client interceptor, or in the course of creating a new client, or in the case of an "eager" singleton, at component start. This method will block until the component is available. If the component fails to start then a runtime exception will be thrown. The instance has been injected and post-construct has been called.- Specified by:
createInstancein interfaceComponent- Specified by:
createInstancein interfaceStatefulSessionBeanInstanceFactory<StatefulSessionComponentInstance>- Overrides:
createInstancein classBasicComponent- Returns:
- the component instance
-
createInstance
- Specified by:
createInstancein interfaceComponent- Overrides:
createInstancein classBasicComponent
-
constructComponentInstance
protected StatefulSessionComponentInstance constructComponentInstance(ManagedReference instance, boolean invokePostConstruct) - Overrides:
constructComponentInstancein classBasicComponent
-
constructComponentInstance
protected StatefulSessionComponentInstance constructComponentInstance(ManagedReference instance, boolean invokePostConstruct, Map<Object, Object> context) - Overrides:
constructComponentInstancein classBasicComponent
-
getSessionIdOf
protected org.jboss.ejb.client.SessionID getSessionIdOf(org.jboss.invocation.InterceptorContext ctx) -
getBusinessObject
public <T> T getBusinessObject(Class<T> businessInterface, org.jboss.invocation.InterceptorContext context) throws IllegalStateException - Overrides:
getBusinessObjectin classSessionBeanComponent- Throws:
IllegalStateException
-
getEJBLocalObject
public jakarta.ejb.EJBLocalObject getEJBLocalObject(org.jboss.invocation.InterceptorContext ctx) throws IllegalStateException - Overrides:
getEJBLocalObjectin classSessionBeanComponent- Throws:
IllegalStateException
-
getEJBObject
public jakarta.ejb.EJBObject getEJBObject(org.jboss.invocation.InterceptorContext ctx) throws IllegalStateException - Overrides:
getEJBObjectin classSessionBeanComponent- Throws:
IllegalStateException
-
getAccessTimeout
Returns theAccessTimeoutapplicable to given method -
createSession
public org.jboss.ejb.client.SessionID createSession() -
createSessionRemote
public org.jboss.ejb.client.SessionID createSessionRemote()creates a session using the global request controller. This should only be used by callers that service remote requests (i.e. places that represent a remote entry point into the container)- Returns:
- The session id
-
getCache
public StatefulSessionBeanCache<org.jboss.ejb.client.SessionID,StatefulSessionComponentInstance> getCache() -
instantiateComponentInstance
protected BasicComponentInstance instantiateComponentInstance(org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method, org.jboss.invocation.Interceptor> methodInterceptors, Map<Object, Object> context) - Overrides:
instantiateComponentInstancein classBasicComponent
-
getAfterBegin
public org.jboss.invocation.Interceptor getAfterBegin() -
getAfterCompletion
public org.jboss.invocation.Interceptor getAfterCompletion() -
getBeforeCompletion
public org.jboss.invocation.Interceptor getBeforeCompletion() -
getAfterBeginMethod
-
getAfterCompletionMethod
-
getBeforeCompletionMethod
-
getPrePassivate
public org.jboss.invocation.Interceptor getPrePassivate() -
getPostActivate
public org.jboss.invocation.Interceptor getPostActivate() -
getEjb2XRemoveMethod
public org.jboss.invocation.Interceptor getEjb2XRemoveMethod() -
init
public void init()- Overrides:
initin classEJBComponent
-
createInterceptors
protected void createInterceptors(org.jboss.invocation.InterceptorFactoryContext context) - Overrides:
createInterceptorsin classBasicComponent
-
done
public void done()- Specified by:
donein interfaceorg.jboss.as.server.suspend.ServerActivityCallback- Overrides:
donein classEJBComponent
-
getAllowedMethodsInformation
- Overrides:
getAllowedMethodsInformationin classEJBComponent
-
getSerialiableInterceptorContextKeys
-
isRemotable
- Specified by:
isRemotablein interfaceComponent
-
shouldDiscard
-