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.enabled
must be set to true as Amazon only allowssl
connection usingamqs
protocol.spring.rabbitmq.host
should be place hostname withoutprotocol
orport
Please refer to this post for complete Springboot + RabbitMQ integration.
Rabbit MQ Spring boot guide
comments powered by Disqus