Permalink
Browse files

fix for GPRABBITMQ-45: we only set the property if converter of corre…

…ct type.
  • Loading branch information...
1 parent 69cb864 commit a0af11a4b919aa2d1f8c74f2de1dee239f9e6fff @ashneyderman ashneyderman committed Oct 9, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 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 a0af11a

Please sign in to comment.