camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cheekychops <smithcol...@hotmail.com>
Subject direct-vm and CamelBlueprintTestSupport
Date Fri, 01 Mar 2013 11:07:56 GMT
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.

Mime
View raw message