Skip to content

Instantly share code, notes, and snippets.

@illerax
Created November 22, 2017 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save illerax/546c75fc94d9538698e1f83254cc65dd to your computer and use it in GitHub Desktop.
Save illerax/546c75fc94d9538698e1f83254cc65dd to your computer and use it in GitHub Desktop.
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