No idea how to do it in tomcat. In karaf I used blueprint and the RedeliveryPolicy class.

Christian

On 12.11.2015 17:06, Mop Sophia wrote:
Hi Christian,

Thanks for your answer.
My connection factory is declared in Tomcat as a Resource. Do you know how
can I configure the redelivery policy, please ?
When I add, this kind of option in the URL an error occured :
jms.redeliveryPolicy.maximumRedeliveries=1

Thanks,

Stéphane

2015-11-12 17:02 GMT+01:00 Christian Schneider <ch...@die-schneider.net>:

First the re deliveries in the factory are done then the ones on the
server.
So they add up.

Christian


On 12.11.2015 16:53, Mop Sophia wrote:

Hi,

I try to confiigure the redelivery policy in my application through the
activemq.xml, I have added this part :
          <plugins>
              <redeliveryPlugin fallbackToDeadLetter="false"
sendToDlqIfMaxRetriesExceeded="false">
                  <redeliveryPolicyMap>
                      <redeliveryPolicyMap>
                          <defaultEntry>
                              <redeliveryPolicy maximumRedeliveries="1"
initialRedeliveryDelay="10000" redeliveryDelay="10000" />
                          </defaultEntry>
                      </redeliveryPolicyMap>
                  </redeliveryPolicyMap>
              </redeliveryPlugin>
          </plugins>

But after a rollback in my application, it seems there are 12 attempts,
maybe 6 default redeliveries * 2 ?
Is there a combination between redeliveries in factory connection and in
broker configuration ?

As another option, I also tried to configure in the brokerURL with :

vm://localhost?jms.redeliveryPolicy.maximumRedeliveries=1&brokerConfig=xbean:activemq.xml
But it seems not possible to put in the URL at the same time a redelivery
policy and a broker configuration file.

Any idea, please ?

Stéphane


--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com




--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com

Reply via email to