[
https://issues.apache.org/jira/browse/CAMEL-12390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bharat Gupta updated CAMEL-12390:
---------------------------------
Description:
I am picking up message from ActiveMQ topic and routing the message to IBM MQ
using APACHE CAMEL.
I am setting various JMS properties that are getting reflected but when setting
JMSDestination value it is coming as null.
The change linked below causes camel-jms throws an exception when a message is
received where JMSDestination is null (when used with WebSphere MQ).
This works as expected in 2.15.3.
The message looks like this (anonymized)
JMSMessage class: jms_text
JMSType: null
JMSDeliveryMode: 2
JMSExpiration: 0
JMSPriority: 5
JMSMessageID: ID:c3e2d840e3d4d8d44040404040404040cfbd668a5f4f4261
JMSTimestamp: 1445609217800
JMSCorrelationID: null
*JMSDestination: null*
JMSReplyTo: queue://TEST/INPUT.QUEUE?targetClient=1
JMSRedelivered: false
JMSXAppID: ilities\RFHUtil\rfhutilc.exe
JMSXDeliveryCount: 1
JMSXUserID: MQXPLO
JMS_IBM_Character_Set: IBM277
JMS_IBM_Encoding: 785
JMS_IBM_Format: MQSTR
JMS_IBM_MsgType: 8
JMS_IBM_PutApplType: 11
JMS_IBM_PutDate: 20151023
JMS_IBM_PutTime: 14065780
how i can make share what i value i am setting is getting set here.
<camel:setHeader headerName="JMSDestination">
<camel:constant>XYZ</camel:constant>
</camel:setHeader>
was:
I am picking up message from ActiveMQ topic and routing the message to IBM MQ
using APACHE CAMEL.
I am setting various JMS properties that are getting reflected but when setting
JMSDestination value it is coming as null.
The change linked below causes camel-jms throws an exception when a message is
received where JMSDestination is null (when used with WebSphere MQ).
This works as expected in 2.15.3.
The message looks like this (anonymized)
JMSMessage class: jms_text
JMSType: null
JMSDeliveryMode: 2
JMSExpiration: 0
JMSPriority: 5
JMSMessageID: ID:c3e2d840e3d4d8d44040404040404040cfbd668a5f4f4261
JMSTimestamp: 1445609217800
JMSCorrelationID: null
*JMSDestination: null*
JMSReplyTo: queue://TEST/INPUT.QUEUE?targetClient=1
JMSRedelivered: false
JMSXAppID: ilities\RFHUtil\rfhutilc.exe
JMSXDeliveryCount: 1
JMSXUserID: MQXPLO
JMS_IBM_Character_Set: IBM277
JMS_IBM_Encoding: 785
JMS_IBM_Format: MQSTR
JMS_IBM_MsgType: 8
JMS_IBM_PutApplType: 11
JMS_IBM_PutDate: 20151023
JMS_IBM_PutTime: 14065780
The following is a link to the troublesome patch included in 2.16.0:
[https://fisheye6.atlassian.com/browse/camel-git/components/camel-jms/src/main/java/org/apache/camel/component/jms/EndpointMessageListener.java?r2=812fa060bfeac5b320624b5d6d4833ac441d42c9&r1=e00e0d6599b01733c270f3053e23118d35ea0881]
> CLONE - Exception is thrown when receiving a message where JMSDestination is
> null
> ---------------------------------------------------------------------------------
>
> Key: CAMEL-12390
> URL: https://issues.apache.org/jira/browse/CAMEL-12390
> Project: Camel
> Issue Type: Bug
> Components: camel-jms
> Affects Versions: 2.20.2
> Reporter: Bharat Gupta
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 2.16.1, 2.17.0
>
>
> I am picking up message from ActiveMQ topic and routing the message to IBM MQ
> using APACHE CAMEL.
> I am setting various JMS properties that are getting reflected but when
> setting JMSDestination value it is coming as null.
> The change linked below causes camel-jms throws an exception when a message
> is received where JMSDestination is null (when used with WebSphere MQ).
> This works as expected in 2.15.3.
> The message looks like this (anonymized)
> JMSMessage class: jms_text
> JMSType: null
> JMSDeliveryMode: 2
> JMSExpiration: 0
> JMSPriority: 5
> JMSMessageID: ID:c3e2d840e3d4d8d44040404040404040cfbd668a5f4f4261
> JMSTimestamp: 1445609217800
> JMSCorrelationID: null
> *JMSDestination: null*
> JMSReplyTo: queue://TEST/INPUT.QUEUE?targetClient=1
> JMSRedelivered: false
> JMSXAppID: ilities\RFHUtil\rfhutilc.exe
> JMSXDeliveryCount: 1
> JMSXUserID: MQXPLO
> JMS_IBM_Character_Set: IBM277
> JMS_IBM_Encoding: 785
> JMS_IBM_Format: MQSTR
> JMS_IBM_MsgType: 8
> JMS_IBM_PutApplType: 11
> JMS_IBM_PutDate: 20151023
> JMS_IBM_PutTime: 14065780
> how i can make share what i value i am setting is getting set here.
> <camel:setHeader headerName="JMSDestination">
> <camel:constant>XYZ</camel:constant>
> </camel:setHeader>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)