You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by dead_devil_66 <de...@hotmail.com> on 2011/08/03 20:53:14 UTC

Dynamic router making request and reply messages???

Greetings.

This is the code for the router:

http://pastie.org/2315635

This is the code for the dynamic router:

http://pastie.org/2315666

The problem is that, everytime i send a message that needs to go throught
the dynamic router, the messages that are put in the queue i request, in the
header, are being associated with a temporary queue 

[aultMessageListenerContainer-1] JmsProducer                    INFO  Using
JmsReplyManager:
org.apache.camel.component.jms.reply.TemporaryQueueReplyManager@16d03ba to
process replies from temporary queue with 1 concurrent consumers.

http://i53.tinypic.com/s2wua9.png

So...after some seconds, the camel engine throws an error like this:

http://pastie.org/2315724


How do i make the messages to be delivered, without expecting any response?

--
View this message in context: http://camel.465427.n5.nabble.com/Dynamic-router-making-request-and-reply-messages-tp4663542p4663542.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Dynamic router making request and reply messages???

Posted by dead_devil_66 <de...@hotmail.com>.
any ideas? do i need to post here anything?

--
View this message in context: http://camel.465427.n5.nabble.com/Dynamic-router-making-request-and-reply-messages-tp4663542p4678830.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Dynamic router making request and reply messages???

Posted by dead_devil_66 <de...@hotmail.com>.
any ideas? do i need to post here anything?

--
View this message in context: http://camel.465427.n5.nabble.com/Dynamic-router-making-request-and-reply-messages-tp4663542p4678831.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Dynamic router making request and reply messages???

Posted by dead_devil_66 <de...@hotmail.com>.
Thanks Claus.

I have something like this:

http://pastie.org/2317614

but it still throws the same error... :/

--
View this message in context: http://camel.465427.n5.nabble.com/Dynamic-router-making-request-and-reply-messages-tp4663542p4664944.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Dynamic router making request and reply messages???

Posted by Claus Ibsen <cl...@gmail.com>.
Hi



On Wed, Aug 3, 2011 at 8:53 PM, dead_devil_66 <de...@hotmail.com> wrote:
> Greetings.
>
> This is the code for the router:
>
> http://pastie.org/2315635
>
> This is the code for the dynamic router:
>
> http://pastie.org/2315666
>
> The problem is that, everytime i send a message that needs to go throught
> the dynamic router, the messages that are put in the queue i request, in the
> header, are being associated with a temporary queue
>
> [aultMessageListenerContainer-1] JmsProducer                    INFO  Using
> JmsReplyManager:
> org.apache.camel.component.jms.reply.TemporaryQueueReplyManager@16d03ba to
> process replies from temporary queue with 1 concurrent consumers.
>
> http://i53.tinypic.com/s2wua9.png
>
> So...after some seconds, the camel engine throws an error like this:
>
> http://pastie.org/2315724
>
>
> How do i make the messages to be delivered, without expecting any response?
>

Use the event message EIP
http://camel.apache.org/event-message.html

eg the message exchange pattern on the Camel Exchange should be set to InOnly.
Then you can deliver the message to the JMS endpoint, without
expecting any response

> --
> View this message in context: http://camel.465427.n5.nabble.com/Dynamic-router-making-request-and-reply-messages-tp4663542p4663542.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/