camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <>
Subject Re: camel cdi extension
Date Thu, 05 Jul 2012 06:14:53 GMT
Hi Romain,

This is really interesting what you have have developed. I don't really like
how you add RouteBuilder in the create method (class CamelContextBean) and I
would prefer that the user can provide this information like we do in a more
Camel traditional way. By the way, I suggest that in the CamelContextBean
class (method create) we use CdiCamelContext as it implements Camel Registry
to do CDI bean lookup in the registry. 

private CamelContext ctx1;

ctx1.addRoutes(new MyRouteBuilder())

Remark : camel-cdi (2.10) allows already to do this ;-)

protected CdiCamelContext camelCtx;

protected org.fusesource.example.cdi.camel.SimpleCamelRoute simpleRoute;


 // Add Camel Route

So what could be the benefit to use this CDI extension ?

I will have a look on that today.



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

View raw message