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

Provide properties-based AMQP connection discovery

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.17.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I'd love to have an option to automatically read AMQP connection parameters from Camel properties. So for example in Spring Boot I can create a bean like:

      @Bean
      AMQPConnectionDetails amqpConnection() {
        return new AMQPConnectionDetails.discoverAMQP();
      }
      

      AMQPConnectionDetails.discoverAMQP should try to read its parameters from a Camel properties. So if you set AMQP_SERVICE_HOST property, Camel will use that value.

      I propose to follow Kubernetes service convention for properties. As as result the snippet above deployed into Kubernetes environment will work out of the box, as AMQP_SERVICE_HOST and AMQP_SERVICE_PORT will be provided by Kubernetes ENV variables.

      You can still rely on the plain good old manual configuration, but this option will be especially interesting for convention-over-configuration freaks.

        Attachments

          Activity

            People

            • Assignee:
              hekonsek Henryk Konsek
              Reporter:
              hekonsek Henryk Konsek
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: