Results 1 to 3 of 3

Thread: How to configure multiple MDP for concurrent processing.

  1. #1
    Join Date
    Jan 2008
    Posts
    7

    Default How to configure multiple MDP for concurrent processing.

    Hi,

    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.

    Thanks
    Sharad

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    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.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    May 2008
    Posts
    3

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •