Class ActiveMQActivation
java.lang.Object
org.apache.activemq.artemis.ra.inflow.ActiveMQActivation
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionActiveMQActivation(ActiveMQResourceAdapter ra, MessageEndpointFactory endpointFactory, ActiveMQActivationSpec spec) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of XAResources for this activation endpoint.booleanbooleanisTopic()voidDrops all existing connection-related resources and reconnectsvoidsetTopicTemporaryQueue(SimpleString topicTemporaryQueue) protected voidsetup()Setup the activationprotected voidsetupCF()protected voidprotected ClientSessionSetup a sessionvoidstart()Start the activationvoidstartReconnectThread(String cause) voidstop()Stop the activationprotected voidteardown(boolean useInterrupt) toString()
-
Field Details
-
ONMESSAGE
-
-
Constructor Details
-
ActiveMQActivation
public ActiveMQActivation(ActiveMQResourceAdapter ra, MessageEndpointFactory endpointFactory, ActiveMQActivationSpec spec) throws ResourceException Constructor- Parameters:
ra- The resource adapterendpointFactory- The endpoint factoryspec- The activation spec- Throws:
ResourceException- Thrown if an error occurs
-
-
Method Details
-
getActivationSpec
-
getMessageEndpointFactory
-
isDeliveryTransacted
public boolean isDeliveryTransacted() -
getWorkManager
-
isTopic
public boolean isTopic() -
start
Start the activation- Throws:
ResourceException- Thrown if an error occurs
-
getTopicTemporaryQueue
-
setTopicTemporaryQueue
-
getXAResources
Returns the list of XAResources for this activation endpoint.- Returns:
- the list of XAResources for this activation endpoint
-
stop
public void stop()Stop the activation -
setup
Setup the activation- Throws:
Exception- Thrown if an error occurs
-
teardown
protected void teardown(boolean useInterrupt) -
setupCF
- Throws:
Exception
-
setupSession
Setup a session- Returns:
- The connection
- Throws:
Exception- Thrown if an error occurs
-
getAddress
-
setupDestination
- Throws:
Exception
-
toString
-
startReconnectThread
-
reconnect
Drops all existing connection-related resources and reconnects- Parameters:
failure- if reconnecting in the event of a failure
-
getConnectionFactory
-