camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <>
Subject Re: CDI and Camel
Date Thu, 05 Jul 2012 06:31:28 GMT
Hi Bruno,

Link has changed ( Thx to
provide me the info, I have updated the project in GitHub. 

By the way, I'm currently refactoring this GitHub project which could be
part in the future of camel project to provide examples + test cases about
deploying camel in CDI environment no matter if it is JavaSE or J2EE. 

I have created under this project a container folder containing
implementations for :
- Glassfish (J2EE) - but could also be used (this is WAR) to deploy project
in JBOSS, Geronimo, ...
- Weld (JavaSE) - Standalone JavaSE - CDI container is started and beans to
be injected are added next
- DeltaSpike (JavaSE) --> openwebbeans or weld. Allow to start a main App
discovering the CDI container and next injecting the beans)
- Karaf (OSGI) - will be based on weld-osgi work or OpenEJB/OpenWebbeans
using KarafEE

I will update documentation end of this week

Regarding to your second question, the CamelContext could be injected like
this :

public class BootStrap {

    Logger logger = LoggerFactory.getLogger(BootStrap.class);

    CdiCamelContext camelCtx;

    SimpleCamelRoute simpleRoute;

    public void init() throws Exception {
  ">> Create CamelContext and register Camel Route.");

            // Define Timer URI

            // Add Camel Route


Apache Committer / Sr. Pr. Consultant at
Email: [hidden email]
Twitter : @cmoulliard, @fusenews
Blog :
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message