[ https://issues.apache.org/jira/browse/CAMEL-7049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Lichtin reopened CAMEL-7049: ----------------------------------- Unfortunately it doesn't seem to be fixed, at least not in 2.11.3. I still see how it the 'normalization' switches from topic to queue: JmsProducer | amel.component.jms.JmsProducer$2 328 | 126 - org.apache.camel.camel-jms - 2.11.3 | Normalized JMSReplyTo destination name topic://xxx -> xxx JmsProducer | amel.component.jms.JmsProducer$2 344 | 126 - org.apache.camel.camel-jms - 2.11.3 | Creating JMSReplyTo queue: xxx JmsProducer | amel.component.jms.JmsProducer$2 356 | 126 - org.apache.camel.camel-jms - 2.11.3 | Using JMSReplyTo destination: queue://xxx JmsProducer | amel.component.jms.JmsProducer$2 364 | 126 - org.apache.camel.camel-jms - 2.11.3 | Created javax.jms.Message: ActiveMQMessage {commandId = 0, responseRequired = false, messageId = null, originalDestination = null, originalTransactionId = null, producerId = null, destination = null, transactionId = null, expiration = 0, timestamp = 0, arrival = 0, brokerInTime = 0, brokerOutTime = 0, correlationId = null, replyTo = queue://xxx, persistent = true, type = null, priority = 0, groupID = null, groupSequence = 0, targetConsumerId = null, compressed = false, userID = null, content = null, marshalledProperties = null, dataStructure = null, redeliveryCounter = 0, size = 0, properties = {breadcrumbId=ID-mlipc-54383-1390388987563-0-1, firedTime=Wed Jan 22 12:09:49 CET 2014}, readOnlyProperties = false, readOnlyBody = false, droppable = false} > 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.3, 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)