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

camel-quarkus - BindToRegistry seems NOT to work outside RouteBuilder

    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

        1. report.tar.gz
          66 kB
          Bruno Meseguer

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: