2 Replies Latest reply on Mar 13, 2013 12:19 PM by Ranajit Jana

    Message Retry Not working

    Ranajit Jana Newbie


      I have used the following configuration for the message retry.




                          <address-setting match="#">















      The issue I am facing is if the message fails it does not go back to the queue.Also the error which should appear in the Jms should be printed again and again if the same is called for retry.

      Currently the error is showing up only one.


      and I see 4 messages put into the deadLetterQueue.


      When I try to dequeue and read the messages than deadletter queue print the following when we print the message.




      all the queues are configured fine and I can see them from the console.


      Any idea where I am going wrong.

        • 1. Re: Message Retry Not working
          Ranajit Jana Newbie

          Probably it has to do with the XA transaction. I am using

          <pooled-connection-factory name="hornetq-ra">

                                  <transaction mode="xa"/>


                                      <connector-ref connector-name="in-vm"/>



                                      <entry name="java:/JmsXA"/>



          Will  this factory be XA compliant ?


          my standalone.xml has following entry


          <bean id="jmsTemplate"


          <property name="connectionFactory" ref="connectionFactory" />



          <bean id="sendSMS"class="com.somecomp.project.jms.JmsQueueSender">

          <property name="queue" ref="smsQueue" />

          <property name="jmsTemplate" ref="jmsTemplate" />





          <bean id="smsmessageListener" class="org.springframework.jms.listener.adapter.MessageListenerAdapter">


          <bean id="smsSender" class="com.somecompany.project.jms.JMSListnerForSendingSMS">







          <jee:jndi-lookup id="connectionFactory" jndi-name="java:/JmsXA"/>
          • 2. Re: Message Retry Not working
            Ranajit Jana Newbie

            Strange thing is deadLetter queue attribute "messages added " is showing continuous increase eventhough nothing is pumped in any queue. The attribute "Message in the Queue" for the deadLetterQueue is still 0.

            Dequeued messages are null messaged and when printed shows HornetQMessage[null]:PERSISTENT