You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/03/21 11:04:38 UTC

[jira] [Commented] (CAMEL-7813) Make camel-jms more robust for replyTo

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

Claus Ibsen commented on CAMEL-7813:
------------------------------------

Yeah lets see if we can in the consumer detect if its destination is the same as a JMSReplyTo and then remove that header, as it would cause it to send it back to itself.

We could have a option to turn this off, if people are crazy and want to send it back to the same queue as a kinda while loop

> Make camel-jms more robust for replyTo
> --------------------------------------
>
>                 Key: CAMEL-7813
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7813
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jms
>    Affects Versions: 2.13.2
>            Reporter: Edward Ost
>            Priority: Minor
>             Fix For: 2.16.0
>
>
> When a JMS queue is used as a camel consumer for a route it may well be one of possibly many intermediate stops in a chain of processing.  If the previous processing step itself used Camel to route the message, then both the JMS replyTo and the camel-header JMSReplyTo will both be populated with the same value.  This will cause an infinite loop.
> Of course, this is in some sense a developer error, but it is a pain to constantly add code to clear the camel JMSReplyTo header if it equals the destination.  This should probably be internal to the camel-jms component itself.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)