You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Wolfram Huesken <wo...@m18.io> on 2016/02/04 09:50:36 UTC

camel-spring-boot's autoload problem

Hello together,

I use camel-spring-boot and its @Component annotation to automatically
include my routes. This works perfectly until version 2.15.4. With
2.15.5 there was a change
(https://github.com/apache/camel/blob/camel-2.15.5/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/RoutesCollector.java#L57-L58)
which now checks for the camel context. 

This is my basic setup:
(https://github.com/Lunatic666/camelskeleton/tree/master/gradle-java)
I have a Start class where I start my SpringApplication and include a
camel-context.xml via @ImportResource("classpath:camel-context.xml")

So my question is, how can I convince spring to use "my" context? Or is
there a better way to create the camel context? I'm pretty new to camel,
so I might simply do it wrong...

Any help is much appreciated!

Bye
Wolfram