In the previous API I used I had the ability to register a shutdown listener if the underlying connection to the amqp server was lost for whatever reason. This helps us monitor when the amqp server goes down and we have to then restart the app since the api didn't reconnect to the server once the connection was lost. So my questions are two fold,
- Does this api reconnect to the amqp server if the underlying connection is lost.
- If not is there a way to register a listener on the connection used by the listener objects.
I've tried this
Code:
rabbitTemplate().getConnectionFactory().createConnection()
				.addShutdownListener()
but im not sure if this is what i want since it looks like it creates a new connection and registers a listener to that and not to the connection used by the listener container.

Thanks
Irfan