activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From preben <preben.asmus...@gmail.com>
Subject redeliveryPlugin seems to have problem with defaultEntry
Date Thu, 28 Aug 2014 11:42:36 GMT
Hi

I have configured my broker with the redeliveryPlugin ->

<plugins>
            <redeliveryPlugin fallbackToDeadLetter="true"
sendToDlqIfMaxRetriesExceeded="true">
                <redeliveryPolicyMap>
                    <redeliveryPolicyMap>
                        <redeliveryPolicyEntries>
                            <redeliveryPolicy queue="fobar"
maximumRedeliveries="10" redeliveryDelay="10000"/>
                        </redeliveryPolicyEntries>
                        <defaultEntry>
                            <redeliveryPolicy  maximumRedeliveries="5"
redeliveryDelay="10000" initialRedeliveryDelay="5000"/>
                        </defaultEntry>
                    </redeliveryPolicyMap>
                </redeliveryPolicyMap>
            </redeliveryPlugin>
        </plugins>

This configuration seems not to have any effect at all. 
When the client roll back AMQ's default redelivery takes precedence with 6
redeliveries.

If I change the configuration to ->

<plugins>
            <redeliveryPlugin fallbackToDeadLetter="true"
sendToDlqIfMaxRetriesExceeded="true">
                <redeliveryPolicyMap>
                    <redeliveryPolicyMap>
                        <redeliveryPolicyEntries>
                            <redeliveryPolicy queue="*"
maximumRedeliveries="10" redeliveryDelay="10000"/>
                        </redeliveryPolicyEntries>
                        <defaultEntry>
                            <redeliveryPolicy  maximumRedeliveries="5"
redeliveryDelay="10000" initialRedeliveryDelay="5000"/>
                        </defaultEntry>
                    </redeliveryPolicyMap>
                </redeliveryPolicyMap>
            </redeliveryPlugin>
        </plugins>

Where i have set queue="*" on the first redeliveryPolicy, redelivery
actually works with maximumRedeliveries and delay.

It seems like a problem with defaultEntry  

Tested on Activemq 5.10.0

Best,
Preben





--
View this message in context: http://activemq.2283324.n4.nabble.com/redeliveryPlugin-seems-to-have-problem-with-defaultEntry-tp4685094.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message