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

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

Would a viable solution be to check the status of the CamelContext instead? Not 
sure what the caveats of this approach would be (race conditions, etc), but 
something like:

if(camelContext.getStatus() != ServiceStatus.Starting && 
camelContext.getStatus() != ServiceStatus.Started)

seems like it might work.

> 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
>            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