Hi Can you tell a bit more how you startup Camel? And what version do you use? Are you using camel-spring-javaconfig or something else?
On Mon, Jul 14, 2014 at 6:12 PM, meo <vojta.kr...@gmail.com> wrote: > Hello, > > I am using org.apache.camel.builder.RouteBuilder as a spring bean, which > creates a route in #configure method containing > > > The bean is then used here: > > @Configuration > public class CommonCamelConfig extends CamelConfiguration { > > @Autowired > private List<RouteBuilder> routeBuilders; > > @Override > public List<RouteBuilder> routes() { > return routeBuilders; > } > } > > > This message is printed on startup: > WARN o.a.c.i.DefaultCamelBeanPostProcessor - No CamelContext defined yet > so cannot inject into bean: > org.apache.camel.component.direct.DirectComponent > > Am I doing something wrong? > > Thanks. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Warn-message-on-startup-due-to-deadLetterChannel-used-in-route-made-in-Spring-Java-Config-tp5753787.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/