Bug in EMS MessageListenerContainerObjectDefinitionParser
Brought to you by:
aseovic,
markpollack
In the ParseContainer method of Spring.Messaging.Ems.Config.MessageListenerContainerObjectDefinitionParser, Lines 274-278, concurrency is a string so there should not be any index specified for the value of the "ConcurrentConsumers" property added to the container definition.
Current Code:
string concurrency = ParseConcurrency(containerElement, parserContext);
if (concurrency != null)
{
containerDef.AddPropertyValue("ConcurrentConsumers", concurrency[1]);
}
should be
Corrected Code:
string concurrency = ParseConcurrency(containerElement, parserContext);
if (concurrency != null)
{
containerDef.AddPropertyValue("ConcurrentConsumers", concurrency);
}