Support amqps:// URIs in spring.rabbitmq.addresses
See original GitHub issueI can connect to a RabbitMQ over amqp+ssl by setting these properties:
spring.rabbitmq.host: 10.0.0.123
spring.rabbitmq.password: password
spring.rabbitmq.port: 5671
spring.rabbitmq.ssl.enabled: true
spring.rabbitmq.username: user
spring.rabbitmq.virtualHost: virtualhost
I would expect that this would work as well
spring.rabbitmq.addresses: amqps://user:password@10.0.0.123/virtualhost
But https://github.com/spring-projects/spring-boot/blob/v1.3.6.RELEASE/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitProperties.java#L118 doesn’t handle the amqps scheme. See https://www.rabbitmq.com/uri-spec.html for the spec on the amqps URI scheme.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:6 (5 by maintainers)
Top Results From Across the Web
RabbitMQ URI Specification
This specification defines an "amqp" URI scheme. Conforming URIs represent the information needed by AMQP 0-9-1 clients as well as some RabbitMQ plugins...
Read more >Spring AMQP
The Spring AMQP project applies core Spring concepts to the development of AMQP-based messaging solutions. We provide a “template” as a high-level ...
Read more >Access amqp_URI from spring boot application.properties file
I need access to this server from Spring boot application.properties file. I have tried spring.rabbitmq.addresses property .But no luck.
Read more >spring-projects/spring-amqp - Gitter
I am currently trying to come up with a spring-amqp integration for spring-cloud-contract. ... No, it's not currently supported; I opened a JIRA...
Read more >RabbitMQ Message Dispatching with Spring AMQP - Baeldung
We can modify this and other defaults in application.yaml. Our project exposes HTTP endpoint on the URI – /broadcast – that accepts POSTs...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can override boot’s auto configured connection factory.
I had a similar issue while deploying a Spring AMQP app on PCF. With the current RabbitMQ Java client, the default SSL Protocol is TLSv1 and that errors out when
TLS 1
is disabled from the PCF-Rabbit tile. I had to add the following properties -I was hoping that only adding the following would resolve my issue -
Please note that the uri property from VCAP_SERVICES is as follows -
The code here - https://github.com/spring-projects/spring-boot/blob/v1.3.6.RELEASE/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitProperties.java#L122 needs to check for amqps also and the port should be set to 5671 for amqps