Feb 25th, 2008, 12:46 PM
ConcurrentConsumer property and JMX
Hi, i have a problem with DefaultMessageListenerContainer . I want to change the concurrentConsumer property dynamically using JMX. Initially, the property is set at 1. Later, I change the property calling the method "setConcurrentConsumer(int)" with the value 3, but nothing occurs. The consumer consumes 1 message at a time.
What are the methods that I need to call? Stop() and Start(), initilize(), ...?
Feb 26th, 2008, 03:52 AM
Landmark 1st post. Not done it dynamically, but I set maxConcurrentConsumers as well. and it worked after that they appeared to be coupled.
The number of concurrentConsumers is the number of threads that travel through the bean not the number of instances of that bean so be careful with your threading.