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

Reply via email to