[ 
https://issues.apache.org/jira/browse/CAMEL-7049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13883839#comment-13883839
 ] 

Martin Lichtin commented on CAMEL-7049:
---------------------------------------

ActiveMQ 5.7.0
(however, from what I can see, no message broker code is involved, it's 
happening in JmsProducer)

> Cannot set JMSReplyTo with a topic destination when sending a message to a 
> queue
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-7049
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7049
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jms
>    Affects Versions: 2.11.1
>            Reporter: Martin Lichtin
>            Assignee: Claus Ibsen
>             Fix For: 2.11.4, 2.12.3, 2.13.0
>
>
> The use case is about using Camel to communicate with the ActiveMQ 
> StatisticsPlugin:
> Need to send a message and set 'JMSReplyTo' with a destination for the 
> response message(s). Doing this as part of a Camel processor:
>    in.setHeader("JMSReplyTo", "topic://mydest");
> This, however, results in the broker (ie. the statistics plugin) returning 
> messages to the "mydest" queue, as opposed to the topic.
> The issue is that Camel starts fiddling with the 'JMSReplyTo' header.
> Enabling trace level shows how Camel coerces the topic into a queue:
> JmsProducer | amel.component.jms.JmsProducer$2 315 | 126 - 
> org.apache.camel.camel-jms - 2.11.1 | Normalized JMSReplyTo destination name 
> topic://jmsqueuemonitor -> jmsqueuemonitor
> JmsProducer | amel.component.jms.JmsProducer$2 315 | 126 - 
> org.apache.camel.camel-jms - 2.11.1 | Normalized JMSReplyTo destination name 
> topic://jmsqueuemonitor -> jmsqueuemonitor
> JmsProducer | amel.component.jms.JmsProducer$2 331 | 126 - 
> org.apache.camel.camel-jms - 2.11.1 | Creating JMSReplyTo queue: 
> jmsqueuemonitor
> JmsProducer | amel.component.jms.JmsProducer$2 331 | 126 - 
> org.apache.camel.camel-jms - 2.11.1 | Creating JMSReplyTo queue: 
> jmsqueuemonitor
> JmsProducer | amel.component.jms.JmsProducer$2 343 | 126 - 
> org.apache.camel.camel-jms - 2.11.1 | Using JMSReplyTo destination: 
> queue://jmsqueuemonitor
> JmsProducer | amel.component.jms.JmsProducer$2 343 | 126 - 
> org.apache.camel.camel-jms - 2.11.1 | Using JMSReplyTo destination: 
> queue://jmsqueuemonitor
> Camel seems to apply some logic that is faulty in this circumstance.
> Just want to send a message to a queue and have that message carry a 
> 'JMSReplyTo' value that should be left untouched. 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to