How to connect Springboot With Amazonmq Rabbitmq instance ?
AmazonMQ provides RabbitMQ as a service along with ActiveMQ
Simple add the below properties to springboot application and your application will connect.
1spring.rabbitmq.ssl.enabled=true
2spring.main.allow-bean-definition-overriding=true
3spring.rabbitmq.username=<username>
4spring.rabbitmq.password=<password>
5spring.rabbitmq.host=<endpoints>
6spring.rabbitmq.port=5672
please note:
spring.rabbitmq.ssl.enabledmust be set to true as Amazon only allowsslconnection usingamqsprotocol.spring.rabbitmq.hostshould be place hostname withoutprotocolorport
Please refer to this post for complete Springboot + RabbitMQ integration.
Rabbit MQ Spring boot guide
comments powered by Disqus