3 Replies Latest reply on Nov 21, 2007 6:27 PM by kconner

    listeners and thrreads

    acure

      I have configuration :


      <jms-listener name="JMS-Gateway" busidref="AGW" maxThreads="1" is-gateway="true" />
      <jms-listener name="AA" busidref="AA" maxThreads="1"/>
      <jms-listener name="AB" busidref="AB" maxThreads="1"/>


      And the question is :

      how many parallel requests it can process ? ( 3 or 1 ?)

      if i put on this three queues messages at one moment, will all messages be processed parallel ?

      if i put message to AGW (gateway) - will it block processing AA or AB ?

      thanx - Antony



        • 1. Re: listeners and thrreads
          kconner

           

          "acure" wrote:
          how many parallel requests it can process ? ( 3 or 1 ?)

          3, each listener will use a single thread for processing.
          "acure" wrote:
          if i put on this three queues messages at one moment, will all messages be processed parallel ?

          It is possible, yes.
          "acure" wrote:
          if i put message to AGW (gateway) - will it block processing AA or AB ?

          Not directly.


          • 2. Re: listeners and thrreads
            acure

             

            "Kevin.Conner@jboss.com" wrote:
            "acure" wrote:
            how many parallel requests it can process ? ( 3 or 1 ?)

            "acure" wrote:
            if i put message to AGW (gateway) - will it block processing AA or AB ?

            Not directly.


            What do you mean, when you write "not directly"?

            Thx - Antony

            • 3. Re: listeners and thrreads
              kconner

               

              "acure" wrote:
              What do you mean, when you write "not directly"?

              There is no direct relationship between the gateway and listeners so they should be able to process their messages in parallel.

              If the gateway is forwarding to one of the listeners then there will obviously be a configured dependency between the two of them. Processing should still happen concurrently though.