public class JmsReplyToHandler extends DefaultReplyToHandler
JmsReplyToHandler
will process a JMS replyTo or hand off to the
default replyTo handler if the replyTo is a URL.
The purpose of this class is to send a result on a ReplyTo destination if one
has been set.
Note that the JmsMessageDispatcher
also contains logic for handling ReplyTo. However,
the dispatcher is responsible attaching the replyTo information to the message and also
receiving on the same replyTo if 'remoteSync' is set. The JmsMessageDispatcher
never
writes to the 'replyTo' destination.DeserializationPostInitialisable.Implementation
connector, logger, muleContext
Constructor and Description |
---|
JmsReplyToHandler(JmsConnector connector,
MuleContext muleContext) |
Modifier and Type | Method and Description |
---|---|
void |
initAfterDeserialisation(MuleContext muleContext) |
protected void |
processMessage(Message replyToMessage,
MuleEvent event) |
void |
processReplyTo(MuleEvent event,
MuleMessage returnMessage,
Object replyTo) |
findConnector, getConnector, getEndpoint, processExceptionReplyTo
public JmsReplyToHandler(JmsConnector connector, MuleContext muleContext)
public void processReplyTo(MuleEvent event, MuleMessage returnMessage, Object replyTo) throws MuleException
processReplyTo
in interface ReplyToHandler
processReplyTo
in class DefaultReplyToHandler
MuleException
protected void processMessage(Message replyToMessage, MuleEvent event) throws JMSException
JMSException
public void initAfterDeserialisation(MuleContext muleContext) throws MuleException
initAfterDeserialisation
in class DefaultReplyToHandler
MuleException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.