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

Camel no resolving bean from Kamelets with local route beans

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • None
    • camel-kamelet
    • None
    • Unknown

    Description

      I am working on a Kamelet defined according to the attachment. However, when I define the binding, the integration fails because it cannot find the bean. The integration fails with:

       

      2021-06-11 11:33:57,960 ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): java.lang.IllegalArgumentException: Property with key [connectionFactoryBean] not found in properties from text: jms:queue:person?connectionFactory=#bean:{{connectionFactoryBean}} 

      In addition to how it is defined in the kamelet, I have also tried using:

       

      • kamelet-reify with allowAutoWiredConnectionFactory true or false
        uri: "kamelet-reify:jms:{{destinationType}}:{{destinationName}}"
         parameters:
         connectionFactory: "#bean:{{connectionFactoryBean}}"
         allowAutoWiredConnectionFactory: true
         steps:
         - to:
         uri: "log:info" 
      • jms directly
        uri: "jms:{{destinationType}}:{{destinationName}}"
         parameters:
         connectionFactory: "#bean:{{connectionFactoryBean}}"
         steps:
         - to:
         uri: "log:info"

         

      • the old way of setting up the bean
        uri: "jms:{{destinationType}}:{{destinationName}}"
         parameters:
         connectionFactory: "#{{connectionFactoryBean}}"
         steps:
         - to:
         uri: "log:info"

         

      Neither seems to work.

       

      jms-source-binding.yaml

      jms-source.kamelet.yaml

       

      Attachments

        1. jms-source.kamelet.yaml
          1 kB
          Otavio Rodolfo Piske
        2. jms-source-binding.yaml
          0.3 kB
          Otavio Rodolfo Piske

        Activity

          People

            Unassigned Unassigned
            orpiske Otavio Rodolfo Piske
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: