Hello, 

I want to start more than one camel context in a spring boot application. 

I declare two contexts like 

@ContextName("multi-one") 
        class MultiOneCamelContext extends DefaultCamelContext { 
            @PostConstruct 
            void customize() { 
                
            SimpleRegistry reg = new SimpleRegistry(); 
            PropertiesComponent pc = new PropertiesComponent(); 


and create the routes like 

@Component 
@ContextName("multi-one") 
public class MultiOneRoute extends RouteBuilder{ 

        @Override 
        public void configure() throws Exception { 


but my routes are always assigned to context camel-1 

Thank you



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-can-I-start-more-than-one-Camel-Context-in-Spring-Boot-tp5805707.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to