Hi What version of Camel do you use?
And what / how do you run your unit test? On Fri, Mar 1, 2013 at 12:07 PM, cheekychops <smithcol...@hotmail.com> wrote: > Hi, > > I've just split a camel context in two and connected them using direct-vm > like this: > > <camelContext id="blueprintJmsContext" > xmlns="http://camel.apache.org/schema/blueprint" trace="false"> > <route id="inbound"> > <from uri="activemq:inbound" /> > <to uri="direct-vm:validator" /> > </route> > </camelContext> > > <camelContext id="blueprintContext" > xmlns="http://camel.apache.org/schema/blueprint" trace="false"> > <route id="validator"> > <from uri="direct-vm:validator" /> > ... > </route> > </camelContext> > > Now my unit tests on blueprintContext fail randomly (sometimes they pass), > with errors like: > > java.lang.IllegalStateException: A consumer Consumerdirect-vm://validator > already exists from CamelContext: blueprintContext. Multiple consumers not > supported > at > org.apache.camel.component.directvm.DirectVmComponent.addConsumer(DirectVmComponent.java:57) > > Is there a way to avoid this with CamelBlueprintTestSupport? > > Many thanks, > > Colin Smith > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/direct-vm-and-CamelBlueprintTestSupport-tp5728344.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen