Browse files

Merge pull request #12 from ashneyderman/master

fix for GPRABBITMQ-45.
  • Loading branch information...
2 parents 69cb864 + a0af11a commit ff0a8eddf8fe009b5b1f1a7f938bfe1be5f1beae @jeffbrown jeffbrown committed Oct 9, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 RabbitmqGrailsPlugin.groovy
View
4 RabbitmqGrailsPlugin.groovy
@@ -212,7 +212,9 @@ class RabbitmqGrailsPlugin {
def doWithApplicationContext = { applicationContext ->
def containerBeans = applicationContext.getBeansOfType(SimpleMessageListenerContainer)
- applicationContext.rabbitTemplate.messageConverter.createMessageIds = true
+ if(applicationContext.rabbitTemplate.messageConverter instanceof org.springframework.amqp.support.converter.AbstractMessageConverter) {
+ applicationContext.rabbitTemplate.messageConverter.createMessageIds = true
+ }
containerBeans.each { beanName, bean ->
if(isServiceListener(beanName)) {
def retryTemplate = applicationContext.rabbitRetryHandler.retryOperations

0 comments on commit ff0a8ed

Please sign in to comment.