When using RabbitMQ service and Insight get "connection refused"
I have a simple rabbitMQ service up and running in an application. When I enable Insight for the application and restart the application I will recieve a connection refused. Disabling Insight and restarting the application will allow normal use again.
Here is the relevant context snippet:
Code:
<!-- Obtain a connection to the RabbitMQ via cloudfoundry-runtime: -->
<rabbit:connection-factory id="rabbitConnectionFactory" />
<!-- Set up the AmqpTemplate/RabbitTemplate: -->
<rabbit:template connection-factory="rabbitConnectionFactory"/>
<!-- Request that queues, exchanges and bindings be automatically
declared on the broker: -->
<rabbit:admin connection-factory="rabbitConnectionFactory"/>
<!-- Declare the "messages" queue: -->
<rabbit:queue name="messages" durable="true"/>
Is there a way to name the service in the context? I know that the service name is "rabbitmq" when I bound it to the application. As a note this is deployed to cloud foundry