Nov 15th, 2007, 05:41 AM
setConcurrentConsumers not working
I am trying to increase the no of listeners in DefaultMessageListenerContainer and have set setConcurrentConsumers to 5. but from the logs I can see that only 1 listener (inboundMessageListener-1) is processing the messages. Can someone pls help me if I need to set anything else to get the other listener reading in paralell ?
Nov 15th, 2007, 02:58 PM
Isn't inboundMessageListener-1 the name of your DefaultMessageListenerContainer? There will only be one container, but if you check out the code, you will see that the DefaultMessageListenerContainer can use multiple AsyncMessageListenerInvokers, based on your concurrentConsumers setting.