5 Replies Latest reply on Nov 23, 2009 5:56 PM by krzyswi

    Seam and JMS

    krzyswi

      Hello!


      I have a message driven bean. I'd like to set a limit, so only one message is processed at a time. I can see, that by default all my messages get processes in parallel. How do I do that?


      Thanks,
      K

        • 1. Re: Seam and JMS
          lvdberg

          Hi,


          you can restric the number of MDB instances, which basically restricts parrallel processing to one.
          I don't have access now to my code, but if I recall well it's just a simple annotation attribute.


          Leo

          • 2. Re: Seam and JMS
            krzyswi

            Hi,


            I was hoping there's something like this. I'll try to find it myself, but if you have a minute and find it in your code, please let me know. I need this ASAP.


            Thanks a lot!
            K.

            • 3. Re: Seam and JMS
              lvdberg

              Hi,


              I will look it up as soon as I get back to the office.


              Leo

              • 4. Re: Seam and JMS
                lvdberg

                Hi,


                Add this in your MDB annotation




                @ActivationConfigProperty(propertyName = "maxSession", propertyValue = "1")





                Leo

                • 5. Re: Seam and JMS
                  krzyswi

                  Thank's a lot. This is what I was looking for. Actually this also solves my other problem, which you kindly commented on my other thread!


                  K.