camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kikou1984 <>
Subject How can i use CDI with the Camel Context
Date Thu, 21 May 2015 09:36:55 GMT

I m using camel version 2.10.0.

In my route spring XML , i want to use the CamelContextCDI instead of the

How can i do it ? 

<beans xmlns=""
	<import resource="classpath:/suivi-import-jms.xml" />
	<bean id="InitLcl" class="net.InitLCLBean" />
	<bean id="CtrlCB2A" class="net.CtrlCb2aLclBean" />

	<camelContext  id="TM-UNL-TEST"
xmlns="" >

is there a way to change the DefaultCamelContext, or to specify to the  a
bean that it must run with CDI container.

In this bean id = "CtrlCB2A", i have the CDI.

public class CtrlContratBean {

	DateBusinessManager dateBusinessManager;

	 * Bean Ctrl Contrat
	 * @param exchange
	 * @return
	public List<ContratControllable> ctrlContrat(final Exchange exchange) {

And the value of dateBusinessManager still null , may be is there a way to
make like :
<cdi-bean id="CtrlCB2A" class="net.CtrlCb2aLclBean" />

thxs for help, i really don t know to run CDI with camel.

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

View raw message