RabbitMq plugin additional listeners
Hi guys,
Peter if your reading, thanks for a great plugin.
I have a small question regarding how to implement listeners to the connection.
Currently if the rabbitmq server is down it throws an AlreadyClosedException,
I want to catch this and send an email to notify an admin that we have a problem with the messaging.
I Have tried wrapping the rabbitSend in a try catch block but no luck
Also I noticed there is the ability to get info on the reason why it cant access the rabbitmq server using (from RabbitMQ API GUIDE)
Code:
connection.addShutdownListener(new ShutdownListener() {
public void shutdownCompleted(ShutdownSignalException cause)
{
...
}
});
Is it also possible to recover from a AlreadyClosedException once the rabbitMq server has been restarted
Basically how do you expose the connection and channels to my grails app so I can deal with them directly or is this functionality already in place and i am missing something.
Thanks in advance
Antony Jukes