Hi Yes do not use camel-spring-javaconfig.
You dont need to create CamelContext, that is done automatic by camel-spring-boot-starter. On Mon, Jun 7, 2021 at 4:06 PM Francesco Chicchiriccò <[email protected]> wrote: > > On 2021/06/07 13:57:58, Claus Ibsen <[email protected]> wrote: > > Hi > > > > You should look at using spring boot if you want this kind of spring > > runtime. > > Thanks Claus. > > Would you be able to suggest which module(s) to include instead of > camel-spring-javaconfig considering that Syncope Core (e.g. the application > being upgraded from Camel 3.7 to 3.10) is already based on Spring Boot 2.5.0? > > Or would it be ok to just drop camel-spring-javaconfig and provide, in my > config class currently extending CamelConfiguration, the following bean > definition: > > @Bean > public CamelContext camelContext() throws Exception { > CamelContext camelContext = createCamelContext(); > camelContext.build(); > return camelContext; > } > > ? > > Thanks again. > Regards. > > > On Mon, Jun 7, 2021 at 3:53 PM Francesco Chicchiriccò > > <[email protected]> wrote: > > > > > > Hi there, > > > in the progress of upgrading from Camel 3.7.4 to 3.10.0 I've noticed that > > > org.apache.camel.spring.javaconfigCamelConfiguration is now deprecated. > > > > > > Moreover, I did find the commit [1] where it is said that the whole > > > camel-spring-javaconfig module is actually deprecated. > > > > > > I was not able though to find a simple way to replace > > > org.apache.camel.spring.javaconfigCamelConfiguration - are you able to > > > help? > > > > > > TIA. > > > Regards. > > > > > > [1] > > > https://github.com/apache/camel/commit/981ff0e0c5eea3ce1da2cded73ce1ce1e9328966 > > > > > > > > > -- > > Claus Ibsen > > ----------------- > > http://davsclaus.com @davsclaus > > Camel in Action 2: https://www.manning.com/ibsen2 > > -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
