I noticed the WMQ_ headers which many times indicate talking to a legacy
WMQ client (non JMS). You may need to set the destination configuration
option for targetClient=0.
Syntax example:
|...|
|.setHeader("CamelJmsDestinationName",
constant("queue:||///MY_QUEUE?targetClient=1"))|
|.to("wmq:queue:MY_QUEUE?useMessageIDAsCorrelationID=||true||");|
ref: http://camel.apache.org/jms.html
On 9/13/16 2:33 AM, sudha0025 wrote:
Hi,
Thanks in advance for looking into this.
I am facing a problem in sending the message to IBM MQ with headers. I have
added MessageId and CorrelationId as headers in camel xml but they are not
sent along with the message.
Any clues pls.
below is code i have used:
<setHeader headerName="WMQ_MQMD_READ_ENABLED">
<simple resultType="java.lang.Boolean">true</simple>
</setHeader>
<setHeader headerName="WMQ_MQMD_WRITE_ENABLED">
<simple resultType="java.lang.Boolean">true</simple>
</setHeader>
<setHeader headerName="JMSMessageID">
<simple resultType="java.lang.byte[]">7777777</simple>
</setHeader>
<setHeader headerName="JMSCorrelationID">
<simple
resultType="java.lang.byte[]">1234565</simple>
</setHeader>
<to uri="wmqComponent:QueueName" />
--
View this message in context:
http://camel.465427.n5.nabble.com/Setting-the-MessageId-and-CorrelationId-headers-before-sending-to-IBM-MQ-tp5787502.html
Sent from the Camel Development mailing list archive at Nabble.com.