org.apache.camel.spring.boot.CamelSpringBootApplicationController Java Examples

The following examples show how to use org.apache.camel.spring.boot.CamelSpringBootApplicationController. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Application.java    From milo-ece2017 with Eclipse Public License 1.0 4 votes vote down vote up
public static void main(final String[] args) {
    ApplicationContext applicationContext = new SpringApplication(Application.class).run(args);
    CamelSpringBootApplicationController applicationController =
            applicationContext.getBean(CamelSpringBootApplicationController.class);
    applicationController.run();
}
 
Example #2
Source File: FunktionRouteBuilder.java    From funktion-connectors with Apache License 2.0 4 votes vote down vote up
public static void main(String[] args) {
    ApplicationContext applicationContext = new SpringApplication(FunktionRouteBuilder.class).run(args);
    CamelSpringBootApplicationController ctx = applicationContext.getBean(CamelSpringBootApplicationController.class);
    ctx.run();
}
 
Example #3
Source File: Main.java    From blog with MIT License 4 votes vote down vote up
public static void main(String[] args) throws Exception {
    ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(Main.class, args);
    CamelSpringBootApplicationController configurableApplicationContextBean = configurableApplicationContext.getBean(CamelSpringBootApplicationController.class);
    configurableApplicationContextBean.blockMainThread();
}