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

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"
class="org.apache.activemq.ra.ActiveMQResourceAdapter"> 
    <property name="serverUrl" value="tcp://192.121.139.110:61416"/> 
    <property name="initialRedeliveryDelay"><value>2000</value></property> 
        <property name="maximumRedeliveries"><value>3</value></property> 
        <property
name="redeliveryBackOffMultiplier"><value>2</value></property> 
        <property
name="redeliveryUseExponentialBackOff"><value>true</value></property> 
        <property name="allPrefetchValues"><value>1</value></property> 
  </bean> 

  <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"/> 
        </bean> 
        </property> 
    <property name="resourceAdapter" ref="activeMQResourceAdapter" /> 
  </bean> 

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

-Nilantha 

-- 
View this message in context: 
http://www.nabble.com/Testing-%22maximumRedeliveries%22...-MDP-does-not-receives-messages-once-an-Exception-is-thrown...-tf3162722.html#a8772945
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to