Create Main Java Starter Class
You can name this file as you like, then you need to update the name in pom.xml in spring-boot-maven-plugin.
package net.pricefx.integration.startup; import java.util.Locale; import org.apache.camel.spring.boot.CamelSpringBootApplicationController; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.ImportResource; @Configuration @EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class}) @ImportResource({"classpath*:camel-context.xml"}) public class Application { public static void main(String[] args) { ApplicationContext applicationContext = new SpringApplication(Application.class).run(args); CamelSpringBootApplicationController applicationController = applicationContext.getBean(CamelSpringBootApplicationController.class); applicationController.run(); } }
IntegrationManager version 5.8.0