Jan 15th, 2010, 04:12 AM
Change the concurrentConsumers of DMLC during runtime
how do I change the number of concurrent consumers during runtime?
I have exposed a bean via JMX which has a reference to an instance of a DMLC (org.springframework.jms.listener.DefaultMessageLi stenerContainer). When I just set the value of concurrentConsumers (setConcurrentConsumers) the value gets changed (I see this in the debugger) but DOES NOT cause the number of consumers to actually change (I monitor the queue in WLS AdminConsole). I also tried invoking the stop() and start() methods after setting to the new value but this did not help either.
What would be the correct way to do this?