Class SessionBeanComponent
- java.lang.Object
-
- org.jboss.as.ee.component.BasicComponent
-
- org.jboss.as.ejb3.component.EJBComponent
-
- org.jboss.as.ejb3.component.session.SessionBeanComponent
-
- All Implemented Interfaces:
Component,org.jboss.as.server.suspend.ServerActivityCallback
- Direct Known Subclasses:
SingletonComponent,StatefulSessionComponent,StatelessSessionComponent
public abstract class SessionBeanComponent extends EJBComponent
- Author:
- Carlo de Wolf
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,AccessTimeoutDetails>beanLevelAccessTimeout
-
Constructor Summary
Constructors Modifier Constructor Description protectedSessionBeanComponent(SessionBeanComponentCreateService ejbComponentCreateService)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutorServicegetAsynchronousExecutor()Return theExecutorused for asynchronous invocations.<T> TgetBusinessObject(Class<T> businessInterface, org.jboss.invocation.InterceptorContext context)javax.ejb.EJBLocalObjectgetEJBLocalObject(org.jboss.invocation.InterceptorContext ctx)javax.ejb.EJBObjectgetEJBObject(org.jboss.invocation.InterceptorContext ctx)booleangetRollbackOnly()voidsetRollbackOnly()-
Methods inherited from class org.jboss.as.ejb3.component.EJBComponent
createViewInstanceProxy, createViewInstanceProxy, done, getAllowedMethodsInformation, 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, init, isBeanManagedTransaction, isCallerInRole, isExceptionLoggingEnabled, isSecurityDomainKnown, isStatisticsEnabled, isTransactionAttributeTypeExplicit, lookup, setIncomingRunAsIdentity, stop
-
Methods inherited from class org.jboss.as.ee.component.BasicComponent
componentInstanceCreated, constructComponentInstance, constructComponentInstance, createInstance, createInstance, createInterceptors, getComponentClass, getComponentName, getCreateServiceName, getInstance, getNamespaceContextSelector, instantiateComponentInstance, serviceNameOf, start, toString, waitForComponentStart
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jboss.as.ee.component.Component
isRemotable
-
-
-
-
Field Detail
-
beanLevelAccessTimeout
protected final Map<String,AccessTimeoutDetails> beanLevelAccessTimeout
-
-
Constructor Detail
-
SessionBeanComponent
protected SessionBeanComponent(SessionBeanComponentCreateService ejbComponentCreateService)
Construct a new instance.- Parameters:
ejbComponentCreateService- the component configuration
-
-
Method Detail
-
getBusinessObject
public <T> T getBusinessObject(Class<T> businessInterface, org.jboss.invocation.InterceptorContext context) throws IllegalStateException
- Throws:
IllegalStateException
-
getEJBLocalObject
public javax.ejb.EJBLocalObject getEJBLocalObject(org.jboss.invocation.InterceptorContext ctx) throws IllegalStateException- Throws:
IllegalStateException
-
getEJBObject
public javax.ejb.EJBObject getEJBObject(org.jboss.invocation.InterceptorContext ctx) throws IllegalStateException- Throws:
IllegalStateException
-
getAsynchronousExecutor
public ExecutorService getAsynchronousExecutor()
Return theExecutorused for asynchronous invocations.- Returns:
- the async executor
-
getRollbackOnly
public boolean getRollbackOnly() throws IllegalStateException- Overrides:
getRollbackOnlyin classEJBComponent- Throws:
IllegalStateException
-
setRollbackOnly
public void setRollbackOnly() throws IllegalStateException- Overrides:
setRollbackOnlyin classEJBComponent- Throws:
IllegalStateException
-
-