Hi

I have created a ticket to track this
https://issues.apache.org/jira/browse/CAMEL-3462

And looks like I got a bit of time to look at this.


On Sun, Nov 7, 2010 at 1:53 AM, igoldsmith <[email protected]> wrote:
>
> I'm not sure what you mean by creating a sample project.  I'm not really a
> developer.  I'm a product manager.
>
> I think that the specification of replyTo on an endpoint should always
> ensure that there is a replyTo specified in messages sent by the
> JMSProducer, because if the route creator specifies it, then that is what
> they intend.  The only decision should be what to do in the event that there
> is already a replyTo header in the message.
>
> I would argue that the default behavior should be to always use the value
> specified in the endpoint (i.e. override any value provided in the
> exchange).  If the administrator wants to reverse this default they could
> use the preserveMessageQos=true option, although replyTo doesn't really seem
> to fit into the category of QoS.
>
> I think adding the following code to the JMS Producer right before the
> initiation of the messageCreator might do the job:
>
>        // if the endpoint contains a replyTo header then we'll always use
> it
>        // unless the preserveMessageQos flag is set, in which case we'll
> only use it
>        // if the exchange doesn't contain a replyTo
>        if (endpoint.getReplyTo() != null) {
>                if (!endpoint.isPreserveMessageQos() ||
> (exchange.getIn().getHeader("JMSReplyTo") == null)) {
>                        exchange.getIn().setHeader("JMSReplyTo", 
> endpoint.getReplyTo());
>                }
>        }
>
> Not the most graceful solution, but I think it works.
>
> Ian
>
>
> Claus Ibsen-2 wrote:
>>
>>
>> There may be an issue on the producer side to send a message as InOnly
>> to a JMS destination and preserving the JMSReplyTo header.
>> Fell free to create a little sample project with a couple of routes
>> which highlights your intention.
>>
>> Then we can use that for unit tests and implementing this in camel-jms
>> if an option is missing.
>>
>>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/JMS-ReplyTo-not-sent-for-InOnly-Pattern-tp3250344p3253597.html
> Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to