title: Mule & WMQ : How do I get the response queue message which corresponds to a request message?
body: <p>I'm working on a project which aim is to test Mule and it's capabilities against an IBM Websphere MQ. We're able to get the WMQ connector to put messages on any given queue and pick message on any given queue. However, we're unable to correlate response messages (on a response queue) with request message (put on a request queue). </p>
  
  <p>Let's say we put a message on a request queue which represents a specific data request. This message gets a message id upon leaving Mule. Now, we'd like to pick the corresponding response message which eventually will become available on the response queue. However, we can only get Mule to pick all messages from this queue (in a FIFO manner).</p>
  
  <p>The IBM Websphere MQ API has a class <a href="http://pic.dhe.ibm.com/infocenter/wmqv7/v7r0m0/index.jsp?topic=/com.ibm.mq.java.doc/com/ibm/mq/MQQueue.html" rel="nofollow"><code>MQQueue</code></a> which exposes the method get(). This method accepts an <a href="http://pic.dhe.ibm.com/infocenter/wmqv7/v7r0m0/index.jsp?topic=/com.ibm.mq.java.doc/com/ibm/mq/MQMessage.html" rel="nofollow"><code>MQMessage</code></a> argument. If the messageId property is set on the <code>MQMessage</code> instance, then the API will make sure to only return the message which has this id. In other words, it will not treat the response queue as a FIFO queue, but will rather query the queue for a message with the given messageId.</p>
  
  <p>How do I get Mule to work this way?</p>