You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by sparky2708 <da...@columbia.edu> on 2008/04/02 00:12:10 UTC

Is my destinationPolicy working [trying to deal with a slow consumer]

I recently put a variant of the following (in my activemq.xml file). When I
start up the broker I don't see any confirmation that a destination policy
has been setup? How can I test or confirm that it has been accepted and it
is working?

Here's your sample code:

 <!--  lets define the dispatch policy -->
    <destinationPolicy>
      <policyMap>
        <policyEntries>
            <policyEntry topic="PRICES.>">
            <!--  10 seconds worth -->
            <subscriptionRecoveryPolicy>
              <timedSubscriptionRecoveryPolicy recoverDuration="10000" />
            </subscriptionRecoveryPolicy>
            
            <!-- lets force old messages to be discarded for slow consumers
-->
            <pendingMessageLimitStrategy>
              <constantPendingMessageLimitStrategy limit="10"/>
            </pendingMessageLimitStrategy>
          </policyEntry>
        </policyEntries>
      </policyMap>
    </destinationPolicy>

-- 
View this message in context: http://www.nabble.com/Is-my-destinationPolicy-working--trying-to-deal-with-a-slow-consumer--tp16427204s2354p16427204.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.