You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by prajath <pr...@gmail.com> on 2015/09/18 13:19:50 UTC
rabbitMQ message forwarding from one queue to another
Hi All,
could you please help me to resolve the problem I am facing when forwarding
message from one queue to another , please see the spring xml.
thanks in advance
prajath
<camelContext id="camel-1" xmlns="http://camel.apache.org/schema/spring">
<route>
<camel:from
uri="rabbitmq://localhost:5672/outBox?sername=guest&password=guest"
/>
<camel:to uri="stream:out" />
</route>
<route>
<camel:from
uri="rabbitmq://localhost:5672/inbox?username=guest&password=guest"
/>
<camel:to
uri="rabbitmq://localhost:5672/outBox?username=guest&password=guest" />
</route>
<route>
<camel:from uri="timer:foo?period=10"/>
<setBody>
<simple>${body}Message at ${date:now:yyyy-MM-dd HH:mm:ss}</simple>
</setBody>
<to
uri="rabbitmq://localhost:5672/inbox?username=guest&password=guest" />
</route>
</camelContext>
--
View this message in context: http://camel.465427.n5.nabble.com/rabbitMQ-message-forwarding-from-one-queue-to-another-tp5771632.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: rabbitMQ message forwarding from one queue to another
Posted by Christian Müller <ch...@gmail.com>.
And there is no log entry?
Best,
Christian
Am 20.09.2015 09:15 schrieb "prajath" <pr...@gmail.com>:
> Hi Christian,
> message is not publishing from queue 'inbox' to 'outbox'
>
> 1.timer publish current date to queue 'inbox'- this part working
> 2.from 'inbox' to 'outbox' - this is not working
>
>
>
>
> Thanks,
> Pramod
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/rabbitMQ-message-forwarding-from-one-queue-to-another-tp5771632p5771686.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Re: rabbitMQ message forwarding from one queue to another
Posted by prajath <pr...@gmail.com>.
Hi Christian,
message is not publishing from queue 'inbox' to 'outbox'
1.timer publish current date to queue 'inbox'- this part working
2.from 'inbox' to 'outbox' - this is not working
Thanks,
Pramod
--
View this message in context: http://camel.465427.n5.nabble.com/rabbitMQ-message-forwarding-from-one-queue-to-another-tp5771632p5771686.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: rabbitMQ message forwarding from one queue to another
Posted by Christian Müller <ch...@gmail.com>.
Facing which problem?
Best,
Christian
Am 18.09.2015 13:20 schrieb "prajath" <pr...@gmail.com>:
> Hi All,
> could you please help me to resolve the problem I am facing when forwarding
> message from one queue to another , please see the spring xml.
> thanks in advance
> prajath
> <camelContext id="camel-1" xmlns="http://camel.apache.org/schema/spring">
> <route>
> <camel:from
>
> uri="rabbitmq://localhost:5672/outBox?sername=guest&password=guest"
> />
> <camel:to uri="stream:out" />
> </route>
> <route>
> <camel:from
>
> uri="rabbitmq://localhost:5672/inbox?username=guest&password=guest"
> />
> <camel:to
>
> uri="rabbitmq://localhost:5672/outBox?username=guest&password=guest" />
> </route>
> <route>
> <camel:from uri="timer:foo?period=10"/>
>
> <setBody>
> <simple>${body}Message at
> ${date:now:yyyy-MM-dd HH:mm:ss}</simple>
> </setBody>
>
> <to
> uri="rabbitmq://localhost:5672/inbox?username=guest&password=guest" />
> </route>
>
>
> </camelContext>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/rabbitMQ-message-forwarding-from-one-queue-to-another-tp5771632.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Re: rabbitMQ message forwarding from one queue to another
Posted by Willem Jiang <wi...@gmail.com>.
Which version of Camel are you using?
If you want to route the message between two rabbitMQ endpoint you need to setup the option of bridgeEndpoint just like this.
<route>
<camel:from
uri="rabbitmq://localhost:5672/inbox?username=guest&password=guest" />
<camel:to
uri="rabbitmq://localhost:5672/outBox?username=guest&password=guest&bridgeEndpoint=true" />
</route>
--
Willem Jiang
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On September 18, 2015 at 7:20:54 PM, prajath (prajigate@gmail.com) wrote:
> Hi All,
> could you please help me to resolve the problem I am facing when forwarding
> message from one queue to another , please see the spring xml.
> thanks in advance
> prajath
>
>
> > uri="rabbitmq://localhost:5672/outBox?sername=guest&password=guest"
> />
>
>
>
> > uri="rabbitmq://localhost:5672/inbox?username=guest&password=guest"
> />
> >
> uri="rabbitmq://localhost:5672/outBox?username=guest&password=guest"
> />
>
>
>
>
>
> ${body}Message at ${date:now:yyyy-MM-dd HH:mm:ss}
>
>
> > uri="rabbitmq://localhost:5672/inbox?username=guest&password=guest"
> />
>
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/rabbitMQ-message-forwarding-from-one-queue-to-another-tp5771632.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>