diff --git a/grails-aws-sdk-sqs/README.md b/grails-aws-sdk-sqs/README.md index febc04f..54041de 100644 --- a/grails-aws-sdk-sqs/README.md +++ b/grails-aws-sdk-sqs/README.md @@ -121,10 +121,10 @@ class MyQueueService extends AmazonSQSService { static final QUEUE_NAME = 'my-queue' - @PostConstruct - def init() { - init(QUEUE_NAME) - } + void afterPropertiesSet() { + super.afterPropertiesSet() + init(QUEUE_NAME) + } } ```