public class XaTransactedJmsMessageReceiver extends TransactedPollingMessageReceiver
Modifier and Type | Class and Description |
---|---|
protected static class |
XaTransactedJmsMessageReceiver.JmsThreadContext
Holder receiving the session and consumer for this thread.
|
protected static class |
XaTransactedJmsMessageReceiver.ThreadContextLocal
Strongly typed ThreadLocal for ThreadContext.
|
TransactedPollingMessageReceiver.MessageProcessorWorker
Modifier and Type | Field and Description |
---|---|
protected JmsConnector |
connector |
protected XaTransactedJmsMessageReceiver.ThreadContextLocal |
context |
static long |
DEFAULT_JMS_POLL_FREQUENCY |
static TimeUnit |
DEFAULT_JMS_POLL_TIMEUNIT |
protected boolean |
reuseConsumer |
protected boolean |
reuseSession |
protected long |
timeout |
DEFAULT_POLL_FREQUENCY, DEFAULT_POLL_TIMEUNIT, DEFAULT_STARTUP_DELAY, schedules
defaultInboundTransformers, defaultResponseTransformers, flowConstruct, listener, receiverKey, replyToHandler
connected, endpoint, lifecycleManager, logger, muleMessageFactory, retryTemplate
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
XaTransactedJmsMessageReceiver(Connector connector,
FlowConstruct flowConstruct,
InboundEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected void |
closeResource(boolean force)
Close Sesison and consumer
|
protected MessageConsumer |
createConsumer()
Create a consumer for the jms destination
|
protected void |
doConnect() |
protected void |
doDisconnect() |
protected void |
doDispose() |
protected List<MuleMessage> |
getMessages() |
void |
poll()
The poll method is overriden from the
TransactedPollingMessageReceiver |
protected void |
processMessage(Object msg) |
boolean |
shouldConsumeInEveryNode()
Determines whether to start or not the MessageSource base on the running node state.
|
doStart, hasNoMessages, isReceiveMessagesInTransaction, isUseMultipleTransactedReceivers, setReceiveMessagesInTransaction, setUseMultipleTransactedReceivers
createWork, disableNativeScheduling, doStop, getBatchSize, getFrequency, getTimeUnit, performPoll, pollOnPrimaryInstanceOnly, schedule, setFrequency, setTimeUnit, unschedule
applyInboundTransformers, applyResponseTransformers, connectHandler, createExecutionTemplate, createLifecycleManager, createMuleEvent, doStartHandler, getConnectEventId, getConnectionDescription, getEndpoint, getEndpointURI, getFlowConstruct, getReceiverKey, getReplyToHandler, getWorkManager, handleUnacceptedFilter, initialise, processMessage, propagateRootMessageIdProperty, routeEvent, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, setEndpoint, setListener, setReceiverKey, toString, warnIfMuleClientSendUsed
activate, connect, createMuleMessage, createMuleMessage, createMuleMessage, createMuleMessageFactory, createNullMuleMessage, disconnect, dispose, disposeAndLogException, doInitialise, getConnectEventId, getConnector, getLifecycleState, initializeMessageFactory, initializeRetryPolicy, isConnected, isDoThreading, isStarted, isStarting, isStopped, isStopping, passivate, setEndpoint, start, stop, validate, validateConnection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createMuleMessage, createMuleMessage
connect, disconnect, isConnected, validateConnection
dispose
public static final long DEFAULT_JMS_POLL_FREQUENCY
public static final TimeUnit DEFAULT_JMS_POLL_TIMEUNIT
protected final JmsConnector connector
protected boolean reuseConsumer
protected boolean reuseSession
protected final XaTransactedJmsMessageReceiver.ThreadContextLocal context
protected final long timeout
public XaTransactedJmsMessageReceiver(Connector connector, FlowConstruct flowConstruct, InboundEndpoint endpoint) throws CreateException
CreateException
public boolean shouldConsumeInEveryNode()
AbstractMessageReceiver
shouldConsumeInEveryNode
in class AbstractMessageReceiver
protected void doDispose()
doDispose
in class AbstractMessageReceiver
protected void doConnect() throws Exception
doConnect
in class AbstractTransportMessageHandler
Exception
protected void doDisconnect() throws Exception
doDisconnect
in class AbstractTransportMessageHandler
Exception
public void poll() throws Exception
TransactedPollingMessageReceiver
poll
in class TransactedPollingMessageReceiver
Exception
protected List<MuleMessage> getMessages() throws Exception
getMessages
in class TransactedPollingMessageReceiver
Exception
protected void processMessage(Object msg) throws Exception
processMessage
in class TransactedPollingMessageReceiver
Exception
protected void closeResource(boolean force)
protected MessageConsumer createConsumer() throws Exception
Exception
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.