Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Make rabbitmq host configurable #16

Open
rberlind opened this issue Mar 27, 2017 · 0 comments
Open

Make rabbitmq host configurable #16

rberlind opened this issue Mar 27, 2017 · 0 comments

Comments

@rberlind
Copy link
Contributor

This is excerpted from microservices-demo/microservices-demo#686

I'm running the Socks Shop apps on the Apcera platform in which I currently need to use fully qualified DNS names having the form .apcera.local rather than simple host names and ports different from 80 for some technical reasons which I would rather not go into here. This has caused me some problems including the following:

  1. queue-master has the rabbitmq host hard-coded to "rabbitmq" in RabbitMqConfiguration.java and does not include the spring.rabbitmq.host setting in application.properties. Specifically, queue-master uses "CachingConnectionFactory connectionFactory = new CachingConnectionFactory("rabbitmq");". I would like to see queue-master changed to do what shipping does, namely add:
    @value("${spring.rabbitmq.host}")
    private String host;
    to RabbitMqConfiguration.java and add spring.rabbitmq.host=rabbitmq to application.properties. This would then allow me to add "--spring.rabbitmq.host=rabbitmq.apcera.local" to the queue-master start command as I did for shipping.

Thanks,
Roger Berlind

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant