camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wolfram Huesken <...@m18.io>
Subject camel-spring-boot's autoload problem
Date Thu, 04 Feb 2016 08:50:36 GMT
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

Mime
View raw message