Created
November 22, 2017 19:23
-
-
Save illerax/546c75fc94d9538698e1f83254cc65dd to your computer and use it in GitHub Desktop.
Grails Amazon SQS Example producer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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