Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Grails Amazon SQS Example producer
def defaultJmsTemplate
/*
* Send message to Amazon SQS Queue
* */
void sendMessage(String queueName, String payload) {
log.debug "Send message to SQS, queue:$queueName, message:$payload"
defaultJmsTemplate.convertAndSend(queueName, payload)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment