Message expiration

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Message expiration

enrico
Hi,
I am trying to set the expires (JMSExpiration) time using stomp (python stompest) and activemq 5.8. Something is going wrong and the message is immediately redirected to DLQ. I tried to disable DLQ for expired messages and the result is that all messages are discarded (also if the consumer is waiting for the message).
In stompest I set the header 'expires': '10000'

This is my current configuration:
        <destinationPolicy>
            <policyMap>
              <policyEntries>
                <policyEntry producerFlowControl="false" topic=">" expireMessagesPeriod="12000"/>
                <policyEntry queue=">" producerFlowControl="false" expireMessagesPeriod="12000" gcInactiveDestinations="true" inactiveTimoutBeforeGC="3000000">
                <deadLetterStrategy>
                        <sharedDeadLetterStrategy processExpired="false" />
                </deadLetterStrategy>
                <pendingMessageLimitStrategy>
                        <constantPendingMessageLimitStrategy limit="50"/>
                    </pendingMessageLimitStrategy>
                </policyEntry>
              </policyEntries>
            </policyMap>
        </destinationPolicy>

Can you help me?
Thanks!