2 Replies Latest reply on Aug 1, 2005 9:21 AM by cweaver

    How do you set the number of retries on a MDB?

    cweaver

      I have been told that you can override the number of retires on a MDB. I cannot however find any documentation on how this is accomplished. Any help would be appreciated.

      Thanks in advance!

        • 1. Re: How do you set the number of retries on a MDB?
          schrouf

          This can be configured within your queue/topic descriptor

          <?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>
           <attribute name="RedeliveryDelay">10000</attribute>
           <attribute name="RedeliveryLimit">10</attribute>
           <attribute name="SecurityConf">
           <security>
           <role name="owner" read="true" write="true" create="true"/>
           </security>
           </attribute>
          
           </mbean>
          </server>
          
          


          Regards
          Ulf

          • 2. Re: How do you set the number of retries on a MDB?
            cweaver

            Thanks schrouf!!