Re: testing routes when using spring boot

2017-03-20 Thread Minh Tran
Try enabling debug logging on org.springframework.boot and see whether it is skipping the CamelAutoConfiguration class and why. > On 21 Mar 2017, at 12:01 pm, 129073.d.0002 wrote: > > I have this dependency in my pom > > > org.apache.camel >

Re: testing routes when using spring boot

2017-03-20 Thread 129073.d.0002
I have this dependency in my pom org.apache.camel camel-spring-boot-starter 2.18.3 but when I tried to list all spring components, there is no CamelContext -component !? I use @SpringBootA

Re: testing routes when using spring boot

2017-03-20 Thread Minh Tran
Have you got the right camel version? From memory, this class is fairly new so that could explain the missing class problem. As to the missing CamelContext bean, sounds like it isn’t being created automatically and that could be because Spring Boot isn’t doing it’s magic with the CamelAutoConfi

Re: testing routes when using spring boot

2017-03-20 Thread 129073.d.0002
I have camel-test-spring in my pom but class not found. And I tried @Autowire CamelContext but component does not exist. So I keep on debugging my setup. Thanks for your answer, now I know that there is something else wrong with my project. -- View this message in context: http://camel.465427

Re: testing routes when using spring boot

2017-03-20 Thread Minh Tran
Hi You can find it in the camel-test-spring.jar. So add that dependency in your pom. The way to get the camel context would be just to inject it in just like any other spring bean. For example: @Autowired private CamelContext context; > On 21 Mar 2017, at 11:15 am, 129073.d.0002 wrote: > >