camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicolasduminil <>
Subject Re: How to run camel-cdi projects ?
Date Wed, 11 May 2016 15:02:34 GMT
Hi Antonin,

I have investigated the direction you've suggested and I think that the (1)
is fine. Then I found a lot of example like this:

    CdiContainer cdiContainer = CdiContainerLoader.getCdiContainer();
    ContextControl contextControl = cdiContainer.getContextControl();
     * Your code here 

But I'm not sure what the code is supposed to do once the container and the
context started. In my case, the Camel route starts but it stops immediately
because the JVM exits. I don't know how to tell to the container to run for

I have tried also to create an uber jar using the shade maven plugin but I
cannot run it with java -jar as there is no any main().

So I would be very grateful if you could enlighten me. Many thanks in

Kind regards,


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message