Class MessageDrivenComponent
- java.lang.Object
-
- org.jboss.as.ee.component.BasicComponent
-
- org.jboss.as.ejb3.component.EJBComponent
-
- org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent
-
- All Implemented Interfaces:
Component,PooledComponent<MessageDrivenComponentInstance>,org.jboss.as.server.suspend.ServerActivityCallback
public class MessageDrivenComponent extends EJBComponent implements PooledComponent<MessageDrivenComponentInstance>
- Author:
- Carlo de Wolf
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMessageDrivenComponent(MessageDrivenComponentCreateService ejbComponentCreateService, Class<?> messageListenerInterface, javax.resource.spi.ActivationSpec activationSpec, boolean deliveryActive, org.jboss.msc.service.ServiceName deliveryControllerName, String activeResourceAdapterName)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddone()AllowedMethodsInformationgetAllowedMethodsInformation()org.jboss.msc.service.ServiceNamegetDeliveryControllerName()Pool<MessageDrivenComponentInstance>getPool()StringgetPoolName()voidinit()protected BasicComponentInstanceinstantiateComponentInstance(org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method,org.jboss.invocation.Interceptor> methodInterceptors, Map<Object,Object> context)booleanisDeliveryActive()booleanisDeliveryControlled()voidstart()voidstartDelivery()voidstopDelivery()-
Methods 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, getRollbackOnly, getSecurityDomain, getSecurityMetaData, getShutDownInterceptorFactory, getTimeoutInterceptors, getTimeoutMethod, getTimerService, getTransactionAttributeType, getTransactionAttributeType, getTransactionAttributeType, getTransactionManager, getTransactionSynchronizationRegistry, getTransactionTimeout, getTransactionTimeout, getUserTransaction, isBeanManagedTransaction, isCallerInRole, isExceptionLoggingEnabled, isSecurityDomainKnown, isStatisticsEnabled, isTransactionAttributeTypeExplicit, lookup, setIncomingRunAsIdentity, setRollbackOnly, stop
-
Methods inherited from class org.jboss.as.ee.component.BasicComponent
componentInstanceCreated, constructComponentInstance, constructComponentInstance, createInstance, createInstance, createInterceptors, getComponentClass, getComponentName, getCreateServiceName, getInstance, getNamespaceContextSelector, serviceNameOf, 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
createInstance, createInstance, getComponentClass, getInstance, getNamespaceContextSelector, isRemotable, stop, waitForComponentStart
-
-
-
-
Constructor Detail
-
MessageDrivenComponent
protected MessageDrivenComponent(MessageDrivenComponentCreateService ejbComponentCreateService, Class<?> messageListenerInterface, javax.resource.spi.ActivationSpec activationSpec, boolean deliveryActive, org.jboss.msc.service.ServiceName deliveryControllerName, String activeResourceAdapterName)
Construct a new instance.- Parameters:
ejbComponentCreateService- the component configurationdeliveryActive- true if the component must start delivering messages as soon as it is started
-
-
Method Detail
-
instantiateComponentInstance
protected BasicComponentInstance instantiateComponentInstance(org.jboss.invocation.Interceptor preDestroyInterceptor, Map<Method,org.jboss.invocation.Interceptor> methodInterceptors, Map<Object,Object> context)
- Overrides:
instantiateComponentInstancein classBasicComponent
-
getPool
public Pool<MessageDrivenComponentInstance> getPool()
- Specified by:
getPoolin interfacePooledComponent<MessageDrivenComponentInstance>
-
getPoolName
public String getPoolName()
- Specified by:
getPoolNamein interfacePooledComponent<MessageDrivenComponentInstance>
-
start
public void start()
- Specified by:
startin interfaceComponent- Overrides:
startin classBasicComponent
-
init
public void init()
- Overrides:
initin classEJBComponent
-
done
public void done()
- Specified by:
donein interfaceorg.jboss.as.server.suspend.ServerActivityCallback- Overrides:
donein classEJBComponent
-
startDelivery
public void startDelivery()
-
stopDelivery
public void stopDelivery()
-
isDeliveryActive
public boolean isDeliveryActive()
-
isDeliveryControlled
public boolean isDeliveryControlled()
-
getDeliveryControllerName
public org.jboss.msc.service.ServiceName getDeliveryControllerName()
-
getAllowedMethodsInformation
public AllowedMethodsInformation getAllowedMethodsInformation()
- Overrides:
getAllowedMethodsInformationin classEJBComponent
-
-