0 Replies Latest reply on Jun 12, 2019 7:38 AM by Vamshi Krishna

    HowTo - Configure DLQ in jboss EAP7

    Vamshi Krishna Newbie

      Hey there,

      I have the following mbean code with respective JMS Queue and DLQ from current/legacy EAP5 and migrating to EAP7,  and I have listed out the configuration from EAP7. Can anyone please let me know if the EAP7 configuration I had is the right way of configuring DLQ/address setting if not can you please let me know how to configure...?

       

       

      <mbean code="org.jboss.jms.server.destination.QueueService" name="jboss.messaging.destination:service=Queue,name=ABCCreditCheckRequest" xmbean-dd="xmdesc/Queue-xmbean.xml">

      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>

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

      <attribute name="JNDIName">queue/ABCCreditCheckRequest</attribute>

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

      <attribute name="DLQ">jboss.messaging.destination:service=Queue,name=CreditCheckError</attribute>

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

      <attribute name="Clustered">true</attribute>

      </mbean>

       

       

      <mbean code="org.jboss.jms.server.destination.QueueService" name="jboss.messaging.destination:service=Queue,name=CreditCheckRequest" xmbean-dd="xmdesc/Queue-xmbean.xml">

      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>

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

      <attribute name="JNDIName">queue/CreditCheckRequest</attribute>

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

      <attribute name="DLQ">jboss.messaging.destination:service=Queue,name=CreditCheckError</attribute>

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

      <attribute name="Clustered">true</attribute>

      </mbean>

       

       

      <mbean code="org.jboss.jms.server.destination.QueueService" name="jboss.messaging.destination:service=Queue,name=CreditCheckError" xmbean-dd="xmdesc/Queue-xmbean.xml">

      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>

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

      <attribute name="JNDIName">queue/CreditCheckError</attribute>

      <attribute name="Clustered">true</attribute>

      </mbean>

       

       

      Address-setting & JMS Queue Configuration from JBOSS EAP7:

      <address-setting name="ABCCreditCheckRequest" dead-letter-address="jms.queue.ABCCreditCheckRequest" redelivery-delay="60000" max-delivery-attempts="10"/>

      <address-setting name="CreditCheckRequest" dead-letter-address="jms.queue.CreditCheckError" redelivery-delay="60000" max-delivery-attempts="10"/>

       

      <jms-queue name="ABCCreditCheckRequest" entries="java:jboss/exported/jms/queue/ABCCreditCheckRequest"/>

      <jms-queue name="CreditCheckRequest" entries="java:jboss/exported/jms/queue/CreditCheckRequest"/>

      <jms-queue name="CreditCheckError" entries="java:jboss/exported/jms/queue/CreditCheckError"/>