camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henryk Konsek (JIRA)" <>
Subject [jira] [Created] (CAMEL-9388) Provide properties-based AMQP connection discovery
Date Thu, 03 Dec 2015 15:02:10 GMT
Henryk Konsek created CAMEL-9388:

             Summary: Provide properties-based AMQP connection discovery
                 Key: CAMEL-9388
             Project: Camel
          Issue Type: Improvement
            Reporter: Henryk Konsek
            Assignee: Henryk Konsek
             Fix For: 2.17.0

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:

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.

This message was sent by Atlassian JIRA

View raw message