Another option; 

If I reverse the call in my Scala application to be 

val camel = CamelExtension(actorSystem).context 
        SpringApplication.run(classOf[Application])     // Call the Java
Spring Boot dependent jar file to host the endpoints. 
        actorSystem.actorOf(Props(classOf[CamelService]) 


Then the Camel Context is started before the Spring Boot application -- but
that returns the question, how do I then get my spring boot application to
use the Camel Context that was created for the Scala Actor System.

Is there anything I can do here in the Java bean when its been created or
will I have issues with the incorrect application context ??? 

 @Bean
    public SpringCamelContext camelContext(ApplicationContext
applicationContext) throws Exception {

        SpringCamelContext camelContext = new
SpringCamelContext(applicationContext);

        System.out.println("SpringCamelContext camelContext is created : " +
camelContext.getName() + " version "+  camelContext.getVersion() + " status
"+ camelContext.getStatus());
 
        return camelContext;
    }


Thanks for any advice. 




--
View this message in context: 
http://camel.465427.n5.nabble.com/Akka-Camel-and-Spring-Boot-tp5777000p5777004.html
Sent from the Camel Development mailing list archive at Nabble.com.

Reply via email to