posted 14 years ago
I'm trying to get familiar with ActiveMQ topic. I created a publisher and subscriber, with topic that expires in 30 seconds
Here is the code for publisher:
See the last a few lines, I have made the topic "topic.Example" be persistent and called setTimeToLive(). Although a subscriber cannot receive a message that created longer than 30 seconds. I don't see ActiveMQ server admin automatically shows the expired topic "ActiveMQ.Advisory.Expired.topic.Example". Then how do I let subscriber know a topic message is expired and do something accordingly?
BTW, in the ActiveMQ server admin, all the topic's 'Messages Enqueued' column values are always ever incremented. Does this mean memory keep all messages around? Where and how do I setup its limit?
Thanks.
SCJA, SCJP5.0, SCBCD, SCWCD