You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Henryk Konsek (JIRA)" <ji...@apache.org> on 2015/12/03 16:02:10 UTC
[jira] [Created] (CAMEL-9388) Provide properties-based AMQP
connection discovery
Henryk Konsek created CAMEL-9388:
------------------------------------
Summary: Provide properties-based AMQP connection discovery
Key: CAMEL-9388
URL: https://issues.apache.org/jira/browse/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:
{code}
@Bean
AMQPConnectionDetails amqpConnection() {
return new AMQPConnectionDetails.discoverAMQP();
}
{code}
{{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
(v6.3.4#6332)