Hi,

following a discussion on deltaspike IRC channel i created a small CDI
extension camel oriented -->
https://github.com/rmannibucau/camel-cdi-extension

the idea is to decorate route builders with @CamelContextConfig(contextName
= "xxxx") and then be able to get injected the context directly:

     @Inject
    @CamelContextId("context1")
    private CamelContext ctx1;


Currently the context is created when needed (injection time) and destroyed
with the application.

That's more a poc than something completely done but was to let you know (I
know some work is done and the question on the way to start a context is
not totally completed).

- Romain

Reply via email to