Re: File filter bean not working in Camel 3

2021-05-21 Thread Mikael Andersson Wigander
2021-05-21 10:42:25.655 ERROR 10663 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed org.apache.camel.FailedToCreateRouteException: Failed to create route HOUSEKEEPING-ROUTE: Route(HOUSEKEEPING-ROUTE)[From[file://mifir/?antExclude=**%2... because of Faile

Re: File filter bean not working in Camel 3

2021-05-21 Thread Claus Ibsen
Hi It's a Spring Boot issue with that @Bean is not discovered and registered. Mind about spring boots annotation scanner only checks by default the package from the main class, and its sub packages. So it matter where you put this class.

Re: File filter bean not working in Camel 3

2021-05-21 Thread Mikael Andersson Wigander
OK, interesting thought. All my classes are within the same base. @Configuration is in Config.class If this structure no longer works with Spring Boot, what to do then? Should I put all my @Configuration in my Main class instead? /M ‐‐‐ Original Message ‐‐‐ On Friday, May 21st, 2021 at

Re: File filter bean not working in Camel 3

2021-05-21 Thread Claus Ibsen
Hi Look at the Camel Spring Boo Examples you can find from the camel website a link to the github repo. They show how to use SB with Camel 3. That can possible help you to find the solution. On Fri, May 21, 2021 at 11:47 AM Mikael Andersson Wigander wrote: > > OK, interesting thought. > > All my

Sv: Re: File filter bean not working in Camel 3

2021-05-21 Thread Mikael Andersson Wigander
Ok thanks. I tried and reverted my SB to 2.2.0 which is the same version when running camel 2  and it still doesn’t work. /M På fre, maj 21, 2021 vid 13:19, Claus Ibsen skrev: HiLook at the Camel Spring Boo Examples you can find from the camelwebsite a link to the github

Re: File filter bean not working in Camel 3

2021-05-21 Thread Mikael Andersson Wigander
However if doing this it works .filter(new HouseKeepingFileFilter<>()) /M ‐‐‐ Original Message ‐‐‐ On Friday, May 21st, 2021 at 13:19, Claus Ibsen wrote: > Hi > > Look at the Camel Spring Boo Examples you can find from the camel > > website a link to the github repo. > > They show h

Using the recently released Apache Camel 3.10

2021-05-21 Thread Babak Vahdat
Hi Running the following Test: https://github.com/apache/camel-spring-boot-examples/blob/main/rest-jpa/src/test/java/org/apache/camel/example/spring/boot/rest/jpa/ApplicationTest.java#L62

Re: Using the recently released Apache Camel 3.10

2021-05-21 Thread Claus Ibsen
Hi Its the context-path mapping that is not updated to its new prefix https://github.com/apache/camel-spring-boot-examples/blob/main/rest-jpa/src/main/resources/application.yml#L26 See the 3.10 update page what the new key is and then you can fix the example, thanks On Fri, May 21, 2021 at 4:02

Re: Using the recently released Apache Camel 3.10

2021-05-21 Thread Babak Vahdat
> On 21 May 2021, at 17:11, Claus Ibsen wrote: > > Hi > > Its the context-path mapping that is not updated to its new prefix > https://github.com/apache/camel-spring-boot-examples/blob/main/rest-jpa/src/main/resources/application.yml#L26 > > See the 3.10 update page what the new key is and th

Re: Using the recently released Apache Camel 3.10

2021-05-21 Thread Claus Ibsen
On Fri, May 21, 2021 at 8:11 PM Babak Vahdat wrote: > > > > > On 21 May 2021, at 17:11, Claus Ibsen wrote: > > > > Hi > > > > Its the context-path mapping that is not updated to its new prefix > > https://github.com/apache/camel-spring-boot-examples/blob/main/rest-jpa/src/main/resources/applicati

Re: Using the recently released Apache Camel 3.10

2021-05-21 Thread Babak Vahdat
> On 21 May 2021, at 20:46, Claus Ibsen wrote: > > On Fri, May 21, 2021 at 8:11 PM Babak Vahdat > wrote: >> >> >> >>> On 21 May 2021, at 17:11, Claus Ibsen wrote: >>> >>> Hi >>> >>> Its the context-path mapping that is not updated to its new prefix >>> https://github.com/apache/camel-spr