activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Almonte <>
Subject disconnected durable subscribers with selector & no cleanup in msg table
Date Tue, 19 Sep 2006 18:57:33 GMT


I am using ActiveMQ 4.0 to publish some messages to a topic. 
The topic contains durable and nondurable subscribers with Message
The durable subscribers are disconnected until the client requests its
and they synchronously poll all the messages using
The nondurable subscribers are listening asynchronously (onMessage

Problem: When I publish messages with some criteria that only apply to
nondurable subscribers,
ActiveMQ still keeps the messages for the durable subscribers in the table 
even when the durable subscriber message criteria don’t apply. The
TopicSubscriber.receive() returns
no message since there are not messages for the durable selector criteria
(right behavior). But
the activeMQ’s msg table keeps the messages (never clean). There is not
activity in the ack table since the durable subscribers do not poll any

Does ActiveMQ store all published messages or only filtered messages for a
durable subscriber with message selector?

Who clean the stored messages when the durable subscribers poll but there
are not messages for 
their filter criteria?

- Embedded broker with Spring.
- PostgreSQL for db.


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message