activemq-users mailing list archives

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

Hi,

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

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
messages.


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

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

Setting:
- Embedded broker with Spring.
- PostgreSQL for db.

Thanks,
Robert

-- 
View this message in context: http://www.nabble.com/disconnected-durable-subscribers-with-selector---no-cleanup-in-msg-table-tf2300878.html#a6394652
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message