Buggy code:
class JcaListenerContainerParser extends AbstractListenerContainerParser { private static final String RESOURCE_ADAPTER_ATTRIBUTE = "resource-adapter" ; private static final String ACTIVATION_SPEC_FACTORY_ATTRIBUTE = "activation-spec-factory" ; protected BeanDefinition parseContainer ( Element listenerEle , Element containerEle , ParserContext parserContext ) { RootBeanDefinition containerDef = new RootBeanDefinition ( ) ; containerDef . setSource ( parserContext . extractSource ( containerEle ) ) ; containerDef . setBeanClassName ( "org.springframework.jms.listener.endpoint.JmsMessageEndpointManager" ) ; String resourceAdapterBeanName = "resourceAdapter" ; if ( containerEle . hasAttribute ( JcaListenerContainerParser . RESOURCE_ADAPTER_ATTRIBUTE ) ) { resourceAdapterBeanName = containerEle . getAttribute ( JcaListenerContainerParser . RESOURCE_ADAPTER_ATTRIBUTE ) ; if ( ! ( StringUtils . hasText ( resourceAdapterBeanName ) ) ) { parserContext . getReaderContext ( ) . error ( "Listener<seq2seq4repair_space>container<seq2seq4repair_space>'resource-adapter'<seq2seq4repair_space>attribute<seq2seq4repair_space>contains<seq2seq4repair_space>empty<seq2seq4repair_space>value." , containerEle ) ; } } containerDef . getPropertyValues ( ) . addPropertyValue ( "resourceAdapter" , new RuntimeBeanReference ( resourceAdapterBeanName ) ) ; String activationSpecFactoryBeanName = containerEle . getAttribute ( JcaListenerContainerParser . ACTIVATION_SPEC_FACTORY_ATTRIBUTE ) ; String destinationResolverBeanName = containerEle . getAttribute ( DESTINATION_RESOLVER_ATTRIBUTE ) ; if ( StringUtils . hasText ( activationSpecFactoryBeanName ) ) { if ( StringUtils . hasText ( destinationResolverBeanName ) ) { parserContext . getReaderContext ( ) . error ( ( "Specify<seq2seq4repair_space>either<seq2seq4repair_space>'activation-spec-factory'<seq2seq4repair_space>or<seq2seq4repair_space>" + ( "'destination-resolver',<seq2seq4repair_space>not<seq2seq4repair_space>both.<seq2seq4repair_space>If<seq2seq4repair_space>you<seq2seq4repair_space>define<seq2seq4repair_space>a<seq2seq4repair_space>dedicated<seq2seq4repair_space>JmsActivationSpecFactory<seq2seq4repair_space>bean,<seq2seq4repair_space>" + "specify<seq2seq4repair_space>the<seq2seq4repair_space>custom<seq2seq4repair_space>DestinationResolver<seq2seq4repair_space>there<seq2seq4repair_space>(if<seq2seq4repair_space>possible)." ) ) , containerEle ) ; } containerDef . getPropertyValues ( ) . addPropertyValue ( "activationSpecFactory" , new RuntimeBeanReference ( activationSpecFactoryBeanName ) ) ; } if ( StringUtils . hasText ( destinationResolverBeanName ) ) { containerDef . getPropertyValues ( ) . addPropertyValue ( "destinationResolver" , new RuntimeBeanReference ( destinationResolverBeanName ) ) ; } RootBeanDefinition configDef = new RootBeanDefinition ( ) ; configDef . setSource ( parserContext . extractSource ( configDef ) ) ; configDef . setBeanClassName ( "org.springframework.jms.listener.endpoint.JmsActivationSpecConfig" ) ; parseListenerConfiguration ( listenerEle , parserContext , configDef ) ; parseContainerConfiguration ( containerEle , parserContext , configDef ) ; Integer acknowledgeMode = parseAcknowledgeMode ( containerEle , parserContext ) ; if ( acknowledgeMode != null ) { configDef . getPropertyValues ( ) . addPropertyValue ( "acknowledgeMode" , acknowledgeMode ) ; } String transactionManagerBeanName = containerEle . getAttribute ( TRANSACTION_MANAGER_ATTRIBUTE ) ; if ( StringUtils . hasText ( transactionManagerBeanName ) ) { containerDef . getPropertyValues ( ) . addPropertyValue ( "transactionManager" , new RuntimeBeanReference ( transactionManagerBeanName ) ) ; } int [ ] concurrency = parseConcurrency ( containerEle , parserContext ) ; if ( concurrency != null ) { <START_BUG> configDef . getPropertyValues ( ) . addPropertyValue ( "maxConcurrency" , new Integer ( concurrency [ 1 ] ) ) ; <END_BUG> } String prefetch = containerEle . getAttribute ( PREFETCH_ATTRIBUTE ) ; if ( StringUtils . hasText ( prefetch ) ) { configDef . getPropertyValues ( ) . addPropertyValue ( "prefetchSize" , new Integer ( prefetch ) ) ; } containerDef . getPropertyValues ( ) . addPropertyValue ( "activationSpecConfig" , configDef ) ; return containerDef ; } protected boolean indicatesPubSub ( BeanDefinition containerDef ) { } }

Fix:
configDef . getPropertyValues ( ) . addPropertyValue ( "maxConcurrency" , concurrency [ 1 ] ) ;