Unable to set Camel Route JMSReplyTo

View: New views
4 Messages — Rating Filter:   Alert me  

Unable to set Camel Route JMSReplyTo

by cwilliamy2k :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The following is the settings in my camel-context.xml. I have set the replyTo option to a queue named "Q3", but when I look into the message in Q2 at ActiveMQ admin console, the replyTo header is null.

        <camel:route>
            <camel:from uri="AMQ:queue:Q1" />
            <camel:to uri="bean:Dummy"/>
            <camel:to uri="AMQ:queue:Q2?replyTo=queue:Q3"/>
        </camel:route>

Pls help. Thanks.

Re: Unable to set Camel Route JMSReplyTo

by Claus Ibsen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

Try with latest snapshot code as I believe its fixed by CAMEL-2089


On Thu, Nov 5, 2009 at 7:57 AM, cwilliamy2k <cwilliamy2k@...> wrote:

>
> The following is the settings in my camel-context.xml. I have set the replyTo
> option to a queue named "Q3", but when I look into the message in Q2 at
> ActiveMQ admin console, the replyTo header is null.
>
>        <camel:route>
>            <camel:from uri="AMQ:queue:Q1" />
>            <camel:to uri="bean:Dummy"/>
>            <camel:to uri="AMQ:queue:Q2?replyTo=queue:Q3"/>
>        </camel:route>
>
> Pls help. Thanks.
> --
> View this message in context: http://old.nabble.com/Unable-to-set-Camel-Route-JMSReplyTo-tp26208592p26208592.html
> Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
>
>



--
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Re: Unable to set Camel Route JMSReplyTo

by cwilliamy2k :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Claus,

If I put the settings in the following way, then I'll be able to see the replyTo header is 'queue://FirstQueue' in the responseQ.

<camel:route>
            <camel:from uri="tcpActivemq:queue:requestQ?exchangePattern=InOut&useMessageIDAsCorrelationID=true" />
            <camel:to uri="bean:mqInputProcessor"/>
            <camel:to uri="bean:JBPMProcessorBean"/>
            <camel:to uri="bean:mqOutputProcessor"/>
            <camel:to uri="tcpActivemq:queue:responseQ?replyTo=queue:FirstQueue" />
</camel:route>

Thanks.

Regards,
William


cwilliamy2k wrote:
The following is the settings in my camel-context.xml. I have set the replyTo option to a queue named "Q3", but when I look into the message in Q2 at ActiveMQ admin console, the replyTo header is null.

        <camel:route>
            <camel:from uri="AMQ:queue:Q1" />
            <camel:to uri="bean:Dummy"/>
            <camel:to uri="AMQ:queue:Q2?replyTo=queue:Q3"/>
        </camel:route>

Pls help. Thanks.

Re: Unable to set Camel Route JMSReplyTo

by cwilliamy2k :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The camel version I'm using is 2.0.0.



Hi Claus,

If I put the settings in the following way, then I'll be able to see the replyTo header is 'queue://FirstQueue' in the responseQ.

<camel:route>
            <camel:from uri="tcpActivemq:queue:requestQ?exchangePattern=InOut&useMessageIDAsCorrelationID=true" />
            <camel:to uri="bean:mqInputProcessor"/>
            <camel:to uri="bean:JBPMProcessorBean"/>
            <camel:to uri="bean:mqOutputProcessor"/>
            <camel:to uri="tcpActivemq:queue:responseQ?replyTo=queue:FirstQueue" />
</camel:route>

Thanks.

Regards,
William


cwilliamy2k wrote:
The following is the settings in my camel-context.xml. I have set the replyTo option to a queue named "Q3", but when I look into the message in Q2 at ActiveMQ admin console, the replyTo header is null.

        <camel:route>
            <camel:from uri="AMQ:queue:Q1" />
            <camel:to uri="bean:Dummy"/>
            <camel:to uri="AMQ:queue:Q2?replyTo=queue:Q3"/>
        </camel:route>

Pls help. Thanks.