camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Lichtin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-7049) Cannot set JMSReplyTo with a topic destination when sending a message to a queue
Date Mon, 09 Dec 2013 11:28:06 GMT
Martin Lichtin created CAMEL-7049:
-------------------------------------

             Summary: 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


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.4#6159)

Mime
View raw message