1 Reply Latest reply on Mar 1, 2013 7:36 AM by davsclaus

    direct-vm and CamelBlueprintTestSupport

    cheekychops_smithcolina

      Hi,

       

      I've just split a camel context in two and connected them using direct-vm like this:

       

            

       

      Now my unit tests on blueprintContext fail randomly (sometimes they pass), with errors like:

       

      java.lang.IllegalStateException: A consumer Consumer[direct-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

       

      Edited by: cheekychops on Mar 1, 2013 10:24 AM