@Bean CamelSpringBootApplicationController applicationController(ApplicationContext applicationContext, CamelContext camelContext) { return new CamelSpringBootApplicationController(applicationContext, camelContext); }
public static void main(String[] args) { ApplicationContext applicationContext = new SpringApplication(FunktionRouteBuilder.class).run(args); CamelSpringBootApplicationController ctx = applicationContext.getBean(CamelSpringBootApplicationController.class); ctx.run(); }
/** * Standaline app main method. * * @param args arguments. */ public static void main(final String[] args) { SpringApplication.run(Main.class, args) .getBean(CamelSpringBootApplicationController.class).run(); }