You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by bonnahu <bo...@gmail.com> on 2013/09/03 21:34:24 UTC
Sharing a queue between two camel context
Hey guys,
I want to have a queue which is shared by two camel context. Should I use VM
component? Is there any good sample code? thanks!
--
View this message in context: http://camel.465427.n5.nabble.com/Sharing-a-queue-between-two-camel-context-tp5738613.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Sharing a queue between two camel context
Posted by Christian Posta <ch...@gmail.com>.
Yes, subscribe a consumer to the queue, and the consumer will dequeue and
ack. The broker will remove the message when ack'd.
You can also dequeue through JMX in an administration role.
On Wed, Sep 4, 2013 at 6:12 AM, bonnahu <bo...@gmail.com> wrote:
> Hi Chris,
> I got another question here for you. I want to perform a deQueue operation,
> is it possible?
>
> thanks
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Sharing-a-queue-between-two-camel-context-tp5738613p5738678.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta
Re: Sharing a queue between two camel context
Posted by bonnahu <bo...@gmail.com>.
Hi Chris,
I got another question here for you. I want to perform a deQueue operation,
is it possible?
thanks
--
View this message in context: http://camel.465427.n5.nabble.com/Sharing-a-queue-between-two-camel-context-tp5738613p5738678.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Sharing a queue between two camel context
Posted by bonnahu <bo...@gmail.com>.
Hi Christian,
Thanks for your response. I will take your advice to try a real queue.
--
View this message in context: http://camel.465427.n5.nabble.com/Sharing-a-queue-between-two-camel-context-tp5738613p5738617.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Sharing a queue between two camel context
Posted by Christian Posta <ch...@gmail.com>.
Yes, you can use VM as long as the two camel context are in the same JVM
and are loaded from the same classloader. Using a real queue (JMS in
activemq) would be good for inter-jvm camel routes and distributed
components or for more persistent reliability (like if the JVM goes down,
what happens to the queued messages....).
On Tue, Sep 3, 2013 at 12:34 PM, bonnahu <bo...@gmail.com> wrote:
> Hey guys,
> I want to have a queue which is shared by two camel context. Should I use
> VM
> component? Is there any good sample code? thanks!
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Sharing-a-queue-between-two-camel-context-tp5738613.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta