Re: Route Template and dependency to Spring Boot Component Order initialization

2022-12-16 Thread Claus Ibsen
Hi Yeah this seems to be improved via CAMEL-18764 When I debug I can see the templates are loaded first despite being 2nd class, and that only last, routes are created from the template (via templatedRoute) On Fri, Dec 16, 2022 at 10:16 AM Claus Ibsen wrote: > Hi > > I tried the example for

Re: Route Template and dependency to Spring Boot Component Order initialization

2022-12-16 Thread Claus Ibsen
Hi I tried the example for the upcoming 3.20.0 release. If I run it out of the box with java profile mvn spring-boot:run -Dspring-boot.run.profiles=java Then I see 2 routes logged 2022-12-16 10:13:31.009 INFO 38526 --- [ - timer://deux] route4 : Java says Bonjour deux

Re: Route Template and dependency to Spring Boot Component Order initialization

2022-12-16 Thread Claus Ibsen
Hi Sorry for the late reply. Yeah we should make using this out of the box better on SB. Can you create a JIRA ticket. On top of my mind, then Spring Boot may have some annotation/interface that can be implemented to specify priority/ordering. And we have that in Camel as well with

Re: Route Template and dependency to Spring Boot Component Order initialization

2022-11-03 Thread Michael Rambichler
Hi Raymond, thanks for the investigation, but i don't want to override the spring framework and implement it myself. I really wonder if there is no better possibility for route templates. regards Michael Am Mi., 2. Nov. 2022 um 15:18 Uhr schrieb ski n : > Hi Michael, > > Interesting case. As

Re: Route Template and dependency to Spring Boot Component Order initialization

2022-11-02 Thread ski n
Hi Michael, Interesting case. As far as I know, you cannot change the order of the components to load while scanning. It's maybe possible to load the routetemplate definitions before Spring starts: 1. Move the routetemplate definitions (for example the RouteTemplate.java file) to a separate

Route Template and dependency to Spring Boot Component Order initialization

2022-11-02 Thread Michael Rambichler
Hi all, we are heavily using route templates with camel 3.18.x and Spring boot 2.7.3 I still wonder if there is no better possibility to avoid the spring boot component scan order dependency. To reproduce the issue: check out the example from