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 <bonn...@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

Reply via email to