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.