[ https://issues.apache.org/jira/browse/CAMEL-21218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17882683#comment-17882683 ]
James Netherton commented on CAMEL-21218: ----------------------------------------- There's a CQ issue to track the work here: https://github.com/apache/camel-quarkus/issues/6479 Since we're close to cutting an LTS release, I'll leave it for >= CQ 3.16.0. We could consider backporting it for 3.15.x later. > camel-quarkus - BindToRegistry seems NOT to work outside RouteBuilder > --------------------------------------------------------------------- > > Key: CAMEL-21218 > URL: https://issues.apache.org/jira/browse/CAMEL-21218 > Project: Camel > Issue Type: Bug > Components: camel-quarkus > Reporter: Bruno Meseguer > Priority: Minor > Fix For: 4.x > > Attachments: report.tar.gz > > > It seems Camel Quarkus is not able to pick up beans defined with: > {code:java} > @BindToRegistry{code} > When defined outside a RouteBuilder. > However, if ported inside a RouteBuilder all seems good. > Developers may want to define Beans outside the RouteBuilder class, it makes > sense Camel Quarkus finds them when starting up. > > Find attached a reproduceable. > If started with: > {code:java} > ./mvnw quarkus:dev{code} > it will fail. > Then try uncommenting the "myProcessor" code inside the RouteBuilder in the > file "routes.java"/ > Camel Quarkus the starts and succeeds to execute. -- This message was sent by Atlassian Jira (v8.20.10#820010)