[ 
https://issues.apache.org/jira/browse/CAMEL-9161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14998524#comment-14998524
 ] 

Nicholas Stuart commented on CAMEL-9161:
----------------------------------------

Found out the difference and why it's not working correctly in our apps. If you 
include/use spring-cloud the ApplicationContext you create is no longer the 
root conext, and this causes issues with the patch mentioned above.

I'll attach a sample app that will show the issue. It also includes the use of 
FeignClients because we had to work around the double refresh issues with how 
the act so I wanted to make sure that use case was still supported as well. The 
app also includes a RoutesCollector that works with this setup.

Will produce a separate patch for this as well.

> Camel spring-boot not finding routes.
> -------------------------------------
>
>                 Key: CAMEL-9161
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9161
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring-boot
>    Affects Versions: 2.15.3, 2.16.0
>            Reporter: Nicholas Stuart
>            Assignee: Henryk Konsek
>
> On startup Camel is not registering any routes annotated with @Component. 
> Route is found and registered in Spring just fine. Switch to version 2.15.2 
> and it works fine. 
> No errors are thrown, and everything says it's started, but no routes are 
> active or reported as being found during startup. 
> Application is being run through `mvn spring-boot:run` if that makes a 
> difference.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to