git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

o.a.c.i.DefaultCamelBeanPostProcessor : No CamelContext defined yet so cannot inject into bean:


Hello All,

I am running Apache Camel as SpringBoot application

Everything is ok. but when i start it, I saw a warning  No CamelContext
defined yet

but actually in my Route i could get it , and it is also initialized, i
used log to check and trace it

Then Version
       <camel.version>2.22.0</camel.version>
        <springboot.version>2.0.4.RELEASE</springboot.version>
           JDK i used is 1.8, it is the only different with example of
camel springboot

* o.a.c.i.DefaultCamelBeanPostProcessor    : No CamelContext defined yet so
cannot inject into bean:
org.apache.camel.converter.jaxb.FallbackTypeConverter*

*Then I add **CamelContext camelContext as below shown, but it does not
help, still have same warning message*

*Any idea or suggestion? *

*@SpringBootApplication*
*public class SpringbootCameApplication {*


* @Autowired*
* CamelContext camelContext;*