Manually register AMQP/RabbitMQ message listener to resources.groovy?

i seem to keep running into trouble when using the RabbitMQ plugin, so i want to fallback to handling it using Spring RabbitMQ. I am looking for a way on how to register message listeners to my grails application and how to configure that via the resources.groovy. Any pointers or examples on how to achieve that?

Answers


Here is a good blog entry on using spring and rabbitmq. You will not want to use the cloud tag.

http://support.cloudfoundry.com/entries/20322602-getting-started-with-the-rabbitmq-service-from-a-spring-application

Here is the source repo for spring rabbitmq

https://github.com/momania/spring-rabbitmq

https://github.com/momania/spring-rabbitmq/blob/master/src/test/resources/spring-examples.xml

If you add a grails-app/conf/spring/resources.xml file you can use xml based spring beans instead of groovy. May be easier for you.

Also take a look at

Spring integration with RabbitMQ


Need Your Help

Forcing a certain width/height with overflow in a <td>

html css

I have a &lt;table&gt; with table-layout set to fixed, so that all explicit width/height definitions are respected no matter what. I'm trying to get a certain &lt;td&gt; to overflow, but even thoug...

How to get socket.io handshake query in Go

go socket.io

We use the go-socket.io package to run a socket server and we need to authenticate users with handshake query data.