Hi Yeah wonder if we can backport this to 2.15.2.
Henryk any thoughts on this? On Tue, Apr 7, 2015 at 1:51 AM, ccampo <cca...@gmail.com> wrote: > Just a follow up - it appears that CamelSpringBootApplicationController won't > be available until 2.16.0, per > https://issues.apache.org/jira/browse/CAMEL-8532. Unfortunately, this > renders the Camel Spring Boot component effectively broken until then. > > A work-around for anybody encountering this issue is just to write the code > yourself. Create a the class CamelSpringBootApplicationController.java > somewhere in your codebase using the code > https://github.com/apache/camel/blob/master/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelSpringBootApplicationController.java > (and of course, follow the license and give credit where it's due). Then in > your main method, just use the code: > > final ApplicationContext applicationContext = new > SpringApplication(MainClass.class).run(args); > final CamelSpringBootApplicationController applicationController = > > applicationContext.getBean(CamelSpringBootApplicationController.class); > applicationController.blockMainThread(); > > ... similar to what's shown in > https://github.com/apache/camel/blob/master/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/FatJarRouter.java > (again, follow the license). > > Finally declare a bean of type CamelSpringBootApplicationController, like > so: > > @Bean > public CamelSpringBootApplicationController applicationController(final > ApplicationContext applicationContext, > final CamelContext camelContext) { > return new CamelSpringBootApplicationController(applicationContext, > camelContext); > } > > Everything should be OK then. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Spring-Boot-component-is-missing-CamelSpringBootApplicationController-tp5765405p5765406.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/