[
https://issues.apache.org/jira/browse/CAMEL-21218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-21218.
---------------------------------
Resolution: Information Provided
> 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)