4 Replies Latest reply on Sep 9, 2005 10:44 AM by jaikiran

    Message redelivery count and redelivery interval...

    koganty

      We are using JMS for intra server communication.

      How can I control the number of times the message is redelivered and the interval between those redelivery times ?

      Thank You,
      Raju

        • 1. Re: Message redelivery count and redelivery interval...
          schrouf

          You can configure this within your destination definition e.g.



          <?xml version="1.0" encoding="UTF-8" ?>
          <server>
           <mbean code="org.jboss.mq.server.jmx.Queue"
           name="jboss.mq.destination:service=Queue,name=MessengerService">
          
           <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
           <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
           <!-- redelivery delay 10 [s] -->
           <attribute name="RedeliveryDelay">10000</attribute>
           <!-- unlimited redelivery -->
           <attribute name="RedeliveryLimit">-1</attribute>
           </mbean>
          </server>
          


          Regards
          Ulf

          • 2. Re: Message redelivery count and redelivery interval...
            jaikiran

            Hi,
            I tried out setting the redelivery limit on the queue as you mentioned in the above post. I am using JBoss-3.2.3. I got the following error:

            13:55:16,215 INFO [ServiceConfigurator] Problem configuring service jboss.mq.destination:service=Queue,name=MyQueue
            org.jboss.deployment.DeploymentException: No Attribute found with name: RedeliveryLimit


            Is this some new thing that requires higher versions of Jboss?

            • 3. Re: Message redelivery count and redelivery interval...
              genman


              Maybe for 3.2.3 you can set it in the standardjboss.xml file?

              • 4. Re: Message redelivery count and redelivery interval...
                jaikiran

                This would mean that i would be changing the value of redelivery limit of ALL queues on that particular server, right? I would have preffered it to be application specific setting. Is there any other way, i can achieve this?

                Thank you