You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2024/09/13 13:31:00 UTC
[jira] [Commented] (CAMEL-21218) camel-quarkus - BindToRegistry seems NOT to work outside RouteBuilder
[ https://issues.apache.org/jira/browse/CAMEL-21218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17881569#comment-17881569 ]
Otavio Rodolfo Piske commented on CAMEL-21218:
----------------------------------------------
Linking likely related items.
> 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: Major
> 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)