4 Replies Latest reply on Sep 23, 2011 12:15 AM by Phoncy Joseph

    JMS: Long delay in the invocation of onMessage() method

    Phoncy Joseph Newbie

        I'm using jboss messaging in my application. I have configured a queue in destinations-service.xml as below:



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



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


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

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

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




      The message appears in the queue immediately after it has been sent. But the onMessage() method is not getting invoked immediately. The method is getting called after a delay of few hours. The jboss version is 5.1.0.GA. Please help me to resolve this issue.



      Thanks in advance.