3 Replies Latest reply on May 9, 2011 3:44 AM by m4verick

    Limit JMS Queue MBean instances

    m4verick

      Hi!

       

      I use Jboss in version 6.0.0.M1. How can I limit JMS Queue MBeans on JBoss server to only 1 instance of JMS queue per server?

      I would be grateful for help.

        • 1. Limit JMS Queue MBean instances
          mp911de

          Hi there,

          do you mean concurrency of Message-Driven Beans? If so, it's done by @MessageDriven/@ActivationConfigProperty/maxSession:

           

          @MessageDriven(

              activationConfig = {

                  @ActivationConfigProperty(

                      propertyName="maxSession", propertyValue="1")

              })

           

          Best regards,

          Mark

          • 2. Limit JMS Queue MBean instances
            jaikiran

            Also, I would recommend that you upgrade to 6.0.0.Final instead of using a milestone release.

            • 3. Limit JMS Queue MBean instances
              m4verick

              @Mark: I've already used that annotation but my problem occurs anyway.

              @jaikiran pai: now, I can't upgrade to 6.0.0.Final, beacause our system doesn't support it.

               

              I will be thankful for other possible solutions.