activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce Snyder" <>
Subject Re: Durable subscriptions
Date Fri, 26 Sep 2008 18:13:37 GMT
On Fri, Sep 26, 2008 at 7:32 AM, Yari Marchetti
<> wrote:
> Hi everyone,
> i was playing with durable subscriptions and observed a
> behavior that seems strange to me. I configured ActiveMQ
> with
> <fixedSizedSubscriptionRecoveryPolicy maximumSize="32768" />
> for every topic, and then created a durable subscriber for topic
> "test" with a unique client-id and subscription name. Using a
> producer i sent 3 messages to the "test" topic and by using web
> console i was able to see that there were enqueued message for the
> durable subscription, waiting to be delivered.
> By using a durable consumer i was able to retrieve all of the 3
> messages, acking them, and then disconnected the client. I
> then retried to log on the broker with the same durable
> subscription and surprising i received those 3 messages again.
> i tried to look at JMS specifications but nothing it's unspecified. so:
> Is this the normal behavior? i was expecting to not receive those
> messages again since i got them, and acknowledged them. shouldn't
> them be removed from the state when they are correctly delivered?

What you describe sounds like the correct behavior. Take a look at the
explanation of subscription recovery policies here:

perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"

Apache ActiveMQ -
Apache Camel -
Apache ServiceMix -


View raw message