You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Wang Yan <wy...@gmail.com> on 2018/10/08 09:43:30 UTC
: No CamelContext defined yet so cannot inject into bean: or
Hello All,
I am running Apache Camel as SpringBoot application
Everything is ok. but when i start it, I saw a warning
* 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;*
Re: : No CamelContext defined yet so cannot inject into bean: or
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
What version of Camel do you use? And what version of Spring Boot?
And a good idea is to look at the existing camel spring-boot examples
and see if they do something other than you.
https://github.com/apache/camel/tree/master/examples#examples
On Mon, Oct 8, 2018 at 11:43 AM Wang Yan <wy...@gmail.com> wrote:
>
> Hello All,
>
> I am running Apache Camel as SpringBoot application
>
> Everything is ok. but when i start it, I saw a warning
>
> * 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;*
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2