0 Replies Latest reply on Oct 18, 2011 1:59 PM by caglarpolatoglu

    Upgrade from JBoss 4.2 to 5.1 Message Redelivery Limit

    caglarpolatoglu Newbie

      I am upgrading my application from JBoss 4.2 to 5.1. I did some changes about mdb and queues. You can find the changes I've already done.

       

      This is JBoss 4.2:


        <mbean code="org.jboss.mq.server.jmx.Queue"

           name="jboss.mq.destination:service=Queue,name=primaryConsumer1-mdb">

          <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>

          <!-- <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends> -->

          <attribute name="RedeliveryLimit">3</attribute>  

          <attribute name="RedeliveryDelay">1000</attribute>

          <attribute name="ReceiversImpl">org.jboss.mq.server.ReceiversImplArrayList</attribute>

        </mbean>

       

      This is JBoss 5.1:


         <mbean code="org.jboss.jms.server.destination.QueueService"

           name="jboss.messaging.destination:service=Queue,name=primaryConsumer1-mdb" xmbean-dd="xmdesc/Queue-xmbean.xml">

              <depends optional-attribute-name="ServerPeer"> 

                jboss.messaging:service=ServerPeer 

              </depends> 

              <depends>jboss.messaging:service=PostOffice</depends>

              <attribute name="MaxDeliveryAttempts">3</attribute>

              <attribute name="RedeliveryDelay">1000</attribute>

          </mbean>

       

      JBoss deploys the application without error. But I have problem with reaching limit and count value of redelivery in mdb. In Jboss 4.2 I can reach with message.getIntProperty("JMS_JBOSS_REDELIVERY_LIMIT") and message.getIntProperty("JMS_JBOSS_REDELIVERY_COUNT"). But in JBoss 5.1 I can't reach. And also message.getPropertyNames() returns no result, but in jboss 4.2 it returns "JMS_JBOSS_REDELIVERY_LIMIT" and "JMS_JBOSS_REDELIVERY_COUNT"

       

      Is there another way to reach limit and count value of redelivery?