- When I run org.mypackage.test.BeanRouteTest I get duplicate instantiation of the camel context. Once with org.apache.camel.impl.DefaultCamelContext and once with org.apache.camel.spring.SpringCamelContext
10:41:07,187 INFO [org.apache.camel.spring.SpringCamelContext] (MSC service thread 1-5) Route: route5 started and consuming from: direct://whoami 10:41:07,187 INFO [org.apache.camel.impl.DefaultCamelContext] (MSC service thread 1-7) Route: route1 started and consuming from: direct://whoami
- When I learned camel in JB421, and what I thought was way to do this was define the context in a camel-context.xml with a bean for the route (and all other necessary resources) and then define the camel-context like this.
<beans ...... <bean class="org.mypackage.test.BeanRouteTest" id="someRouteBuilder"/> <camelContext id="BeanRoute-context" xmlns="http://camel.apache.org/schema/spring"> <routeBuilder ref="someRouteBuilder"/> </camelContext> </beans>
- This all seems to be working correctly when I was running under camel-test but now that I'm moving my project to arquillan unit tests. So either I am going totally down the wrong path or I have something configured wrong when I try a push this to a EAP/Server
- Red Hat Fuse
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.