org.mule.transport.legstar.wmq
Class MqcihJmsMessageDispatcher

java.lang.Object
  extended by org.mule.transport.AbstractTransportMessageHandler
      extended by org.mule.transport.AbstractMessageDispatcher
          extended by org.mule.transport.jms.JmsMessageDispatcher
              extended by org.mule.transport.legstar.wmq.MqcihJmsMessageDispatcher
All Implemented Interfaces:
org.mule.api.lifecycle.Disposable, org.mule.api.lifecycle.Initialisable, org.mule.api.lifecycle.Lifecycle, org.mule.api.lifecycle.LifecycleStateEnabled, org.mule.api.lifecycle.Startable, org.mule.api.lifecycle.Stoppable, org.mule.api.processor.MessageProcessor, org.mule.api.transport.Connectable, org.mule.api.transport.MessageDispatcher

public class MqcihJmsMessageDispatcher
extends org.mule.transport.jms.JmsMessageDispatcher

This is an override of the standard JmsMessageDispatcher needed to handle CICS MQ Bridge specific correlation needs.

We assume that interacting with CICS MQ Bridge is always synchronous.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.transport.jms.JmsMessageDispatcher
org.mule.transport.jms.JmsMessageDispatcher.ReplyToListener
 
Field Summary
 
Fields inherited from class org.mule.transport.AbstractMessageDispatcher
defaultOutboundTransformers, defaultResponseTransformers
 
Fields inherited from class org.mule.transport.AbstractTransportMessageHandler
connected, endpoint, lifecycleManager, logger, muleMessageFactory, retryTemplate
 
Fields inherited from interface org.mule.api.transport.MessageDispatcher
RECEIVE_NO_WAIT, RECEIVE_WAIT_INDEFINITELY
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
MqcihJmsMessageDispatcher(org.mule.api.endpoint.OutboundEndpoint endpoint)
          Constructor.
 
Method Summary
protected  MessageConsumer createReplyToConsumer(Message currentMessage, org.mule.api.MuleEvent event, Session session, Destination replyTo, boolean topic)
           The standard JmsMessageDispatcher#createReplyToConsumer will use the message ID as the selector only if JMSMessageID is null.
 
Methods inherited from class org.mule.transport.jms.JmsMessageDispatcher
applyOutboundTransformers, createMessageWithJmsMessagePayload, doConnect, doDisconnect, doDispatch, doDispose, doSend, getReplyToDestination, handleMultiTx, isDisableTemporaryDestinations, isHandleReplyTo, preTransformMessage, processMessage
 
Methods inherited from class org.mule.transport.AbstractMessageDispatcher
applyResponseTransformers, createLifecycleManager, getDispatcherName, getEndpoint, getWorkManager, process, returnResponse, returnResponse
 
Methods inherited from class org.mule.transport.AbstractTransportMessageHandler
activate, connect, connectHandler, createMuleMessage, createMuleMessage, createMuleMessage, createMuleMessageFactory, createNullMuleMessage, disconnect, dispose, disposeAndLogException, doInitialise, doStart, doStartHandler, doStop, getConnectEventId, getConnectionDescription, getConnector, getLifecycleState, initialise, initializeMessageFactory, initializeRetryPolicy, isConnected, isDoThreading, isStarted, isStarting, isStopped, isStopping, passivate, setEndpoint, start, stop, toString, validate, validateConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.api.transport.MessageDispatcher
activate, createMuleMessage, createMuleMessage, getConnector, passivate, validate
 
Methods inherited from interface org.mule.api.transport.Connectable
connect, disconnect, getConnectionDescription, isConnected, validateConnection
 
Methods inherited from interface org.mule.api.lifecycle.Initialisable
initialise
 
Methods inherited from interface org.mule.api.lifecycle.Startable
start
 
Methods inherited from interface org.mule.api.lifecycle.Stoppable
stop
 
Methods inherited from interface org.mule.api.lifecycle.Disposable
dispose
 
Methods inherited from interface org.mule.api.lifecycle.LifecycleStateEnabled
getLifecycleState
 

Constructor Detail

MqcihJmsMessageDispatcher

public MqcihJmsMessageDispatcher(org.mule.api.endpoint.OutboundEndpoint endpoint)
Constructor.

Parameters:
endpoint - the JMS endpoint
Method Detail

createReplyToConsumer

protected MessageConsumer createReplyToConsumer(Message currentMessage,
                                                org.mule.api.MuleEvent event,
                                                Session session,
                                                Destination replyTo,
                                                boolean topic)
                                         throws JMSException
The standard JmsMessageDispatcher#createReplyToConsumer will use the message ID as the selector only if JMSMessageID is null. In the case of CICS MQ Bridge, the JMSMessageID is not null but yet, the message ID must be used as the correlator.

Overrides:
createReplyToConsumer in class org.mule.transport.jms.JmsMessageDispatcher
Throws:
JMSException


Copyright © 2013 LegSem. All Rights Reserved.