camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hubertus.Willuhn" <>
Subject Camel/Spring - JavaConfig dont load CamelContext
Date Tue, 08 Dec 2015 09:12:33 GMT
Hi All,

i have a problem with Camel in conjunction with Spring and Java

All my routes getting picked up by Component Scanning but in the error log
came up a Error:

o.apache.camel.impl.DefaultCamelBeanPostProcessor -- No CamelContext defined
yet so cannot inject into bean:

Im starting my app through gradle. It starts correctly my main class
annotated with @Configuration and

My Java Config looks like this:

@ComponentScan ({"",
public class CamelConfig extends CamelConfiguration

My Route looks like this:

@Profile ({"app", "srv"})
public class SRV_Preparator extends Preparator
	public Endpoint producer()
		return endpoint("file:" + this.baseDir +

Preparator defined like

public abstract class Preparator extends RouteBuilder {

Route Definition in Preparator class like:

from(producer()).split().xtokenize(splitPath(), extractionMode(),

The log output shows that all routes in the package get loaded and started
but the CamelContext seems to be missing? After start up the route doen't do

What is the problem? Can somebody give me a hint?

Great Thx in advanced!

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

View raw message