activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: Persistent message and selectors
Date Tue, 06 Jan 2015 17:02:07 GMT
For queues, all messages will be stored, irrespective of whether there is
currently a consumer for them.  That's how queues work.

For topics, I expect that the message would be discarded (topic messages
are delivered to all applicable subscribers, of which there are zero in
this case), but I don't know for sure.  But it would be really easy for you
to test this; set up your consumer, produce a single message (and make sure
no other process is publishing to that topic), and then attach JConsole to
the broker and navigate to that topic's JMX information in the MBeans tab
and look at the topic's attributes.  If you see a MemoryUsageByteCount of 0
then the message was discarded, and if it's non-zero then it wasn't.

If you haven't already, get to know the JMX information available in
JConsole; it's really useful for seeing how the broker behaves, and would
let you answer questions like these without needing to ask for help.

On Mon, Jan 5, 2015 at 11:45 PM, bansalp <bpradeep20@gmail.com> wrote:

> Hi,
>
> Two cases here:
>
> *Topic:*
> Producer is sending persistent message to a topic "A" and subscriber has
> subscribed using selector on topic "A" (durable subscription). Now will all
> message send on "A" get stored in persistent store or only message which
> matches selector criteria get stored?
>
> *Queue:*
> Producer is sending persistent message to a queue "B" and consumer is
> consuming using selector on queue "B". Now will all message send on "B" get
> stored in persistent store or only message which matches selector criteria
> get stored?
>
> Thanks,
> --bansalp
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Persistent-message-and-selectors-tp4689542.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message