activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nilantha <>
Subject Testing "maximumRedeliveries"... MDP does not receives messages once an Exception is thrown...
Date Fri, 02 Feb 2007 18:48:23 GMT

I have posted this message earlier but it seems lost... sorry if I make

I am using Jencks(2.0) for inbound. I am throwing a Runtime exception in
order to test max redelivery setting (I couldn't find any better way to test
with MDPs). If there are no exceptions thrown from MDP messages are consumed
continuously. But as soon as an exception is thrown MDP no longer receives
messages. Only way to get those consumed is restart the app with consumers
again and again. Each time I see rediliveryCount has been increased by 1 for
any message remained the queue. 

This is how I have configured "maximumRedeliveries" 

  <bean id="activeMQResourceAdapter"
    <property name="serverUrl" value="tcp://"/> 
    <property name="initialRedeliveryDelay"><value>2000</value></property>

        <property name="maximumRedeliveries"><value>3</value></property>


        <property name="allPrefetchValues"><value>1</value></property>


  <bean id="jencks" class="org.jencks.JCAContainer"> 
  <property name="bootstrapContext"> 
        <bean class="org.jencks.factory.BootstrapContextFactoryBean"> 
          <property name="transactionManager" ref="transactionManager"/> 
          <property name="threadPoolSize" value="25"/> 
    <property name="resourceAdapter" ref="activeMQResourceAdapter" /> 

Am I missing anything here(using activemq-4.1.0)? Thank you in advance for
any idea on this. 


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message