org.mule.transport.jms
Class JmsReplyToHandler

java.lang.Object
  extended by org.mule.transport.DefaultReplyToHandler
      extended by org.mule.transport.jms.JmsReplyToHandler
All Implemented Interfaces:
Serializable, ReplyToHandler, DeserializationPostInitialisable

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.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.mule.util.store.DeserializationPostInitialisable
DeserializationPostInitialisable.Implementation
 
Field Summary
 
Fields inherited from class org.mule.transport.DefaultReplyToHandler
connector, logger, muleContext
 
Constructor Summary
JmsReplyToHandler(JmsConnector connector, MuleContext muleContext)
           
 
Method Summary
 void initAfterDeserialisation(MuleContext muleContext)
           
protected  void processMessage(Message replyToMessage, MuleEvent event)
           
 void processReplyTo(MuleEvent event, MuleMessage returnMessage, Object replyTo)
           
 
Methods inherited from class org.mule.transport.DefaultReplyToHandler
findConnector, getConnector, getEndpoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsReplyToHandler

public JmsReplyToHandler(JmsConnector connector,
                         MuleContext muleContext)
Method Detail

processReplyTo

public void processReplyTo(MuleEvent event,
                           MuleMessage returnMessage,
                           Object replyTo)
                    throws MuleException
Specified by:
processReplyTo in interface ReplyToHandler
Overrides:
processReplyTo in class DefaultReplyToHandler
Throws:
MuleException

processMessage

protected void processMessage(Message replyToMessage,
                              MuleEvent event)
                       throws JMSException
Throws:
JMSException

initAfterDeserialisation

public void initAfterDeserialisation(MuleContext muleContext)
                              throws MuleException
Overrides:
initAfterDeserialisation in class DefaultReplyToHandler
Throws:
MuleException


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.