Jan 20th, 2008, 05:12 PM
How to configure multiple MDP for concurrent processing.
I've used Spring JMS in a recent project and it has worked very well.
We now have another project wherein the WebSphere MQ is the messaging middleware and we've configured upto 5 MQ Message Listeners for every Queue Manager.
In order to achieve maximum throughput, we wanted to configure a pool of 5-10 message driven pojo(s). I cannot seem to find this configuration in Spring's documentation. Should this setting or configuration be done on Spring's MessageListener Adapter? As per the documentation, the MesasgeListenerAdapter is multi-threaded and it'll create an instance of the MDP in every thread. We wanted to configure the exact number of MesasgeListenerThreads that can be alive & operational at any given time. Is such a setting possible?
Please let me know.
Jan 22nd, 2008, 08:28 AM
It is all there in the documentation.
With the setConcurrentConsumers you can set the initial size of the pool, with the setMaxConcurrentConsumers you can set the max.
May 28th, 2008, 03:34 PM
I'm working a project that using publish-subscribe model.
Can someone please gives an example how to configure multiple listeners for one Topic Manager? Thank you very much.