Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-21218

camel-quarkus - BindToRegistry seems NOT to work outside RouteBuilder

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Information Provided
    • None
    • 4.x
    • camel-quarkus
    • None
    • Unknown

    Description

      It seems Camel Quarkus is not able to pick up beans defined with:

      @BindToRegistry

      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:

      ./mvnw quarkus:dev

      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.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            bruno.meseguer Bruno Meseguer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment