Yes, I subscribe to the topic (use AdvisorySupport.getExpiredQueueMessageAdvisoryTopic()) and it isn't problem to receive the messages - the problem is to make broker to send them - they are expired but stay in the queue till I browse them with web console. I found this discussion - http://www.nabble.com/Expired-messages-are-not-being-removed-from-queues-td21967682.html as far as I understand there is no solution but workaround only.
BR, Elena. rajdavies wrote: > > > On 18 Jun 2009, at 07:43, ElSe wrote: > >> >> Hello! >> >> My application sends non-persistent messages to the queue. The >> expiration >> time for messages is set to 2 seconds. I want to receive >> notification from >> the ActiveMQ.Advisory.Expired.Queue.<MyQueue>. I organized >> subscription to >> this queue but met strange problem: the messages aren't sent there >> continiously. They expire but notifications come to the >> Expired.Queue when I >> click on the my queue name to browse it in the web console >> (<myhost>:8161/admin/queues.jsp) only. >> As far as I understand the expiration notifications should be sent >> without >> any external events, shouldn't they? What can be the reason of such >> strange >> behaviour? >> >> Best regards, >> Elena. >> -- >> View this message in context: >> http://www.nabble.com/ActiveMQ.Advisory.Expired.Queue-question-tp24087249p24087249.html >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> > > Advisories are sent over topics - are you subscribing to a topic ? > > > cheers, > > Rob > > Rob Davies > http://fusesource.com > http://rajdavies.blogspot.com/ > > > > > > > > > > -- View this message in context: http://www.nabble.com/ActiveMQ.Advisory.Expired.Queue-question-tp24087249p24091137.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
