activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <>
Subject Re: Please Help Me..
Date Thu, 29 Aug 2013 11:10:16 GMT
there is no easy way to do that. For non durable subs, the broker does
not keep the message at all. For durable subs, the tracking of message
reference counts is handled by the store, so it not visible to the

The best approach is some sort of expiry on the ftp directory.. maybe
based on the max expiry value of a message.
Every (some period) delete files that are older than the max expiry.
So essentially you need to build your own cleanup task. A solution
like this could make for a nice broker plugin if you can make it work.

On 29 August 2013 06:18, Jinglong Wang <> wrote:
> thank u Tully
> i have seen the test case before,but it not point to the producer how to get
> the all of consumers' amount with consumed the message.
> in our project, cusumers subcribe the topics, producer dont know cusumers
> had been subcribed and concumed the message. I need to ensure all cusumers
> subcribe the topic,and then delete the file.
> how can i do.
> thanks again..
>> peek at the unit tests for example usage. in particular -
>> On 27 August 2013 08:45, Jinglong Wang <> wrote:
>>> hi,everyone:
>>> i have some problems to handle blobmessage.
>>> My environments are:
>>> Tomcat 6.0
>>> Apache FTPServer 1.0.6
>>> ActiveMQ 5.8.0
>>> ActiveMQ message trans type is: publish/subcribe
>>> now, i have a producer of publisher with topic and blobmessage,session
>>> mode
>>> persistent,auto acknowledge.
>>> the file size about 30MB,upload to ftp server
>>> withpolicy:tcp://localhost:61616?jms.blobTransferPolicy.defaultUploadUrl=ftp://localhost:21/.
>>> then, client with subcriber to recive the blobmessage.
>>> my problem is:
>>> 1. how to get the message status that downloaded file,recive success.
>>> 2. how and when delete the file from the blobmessage in ftp server.
>>> newbie,thanks a lot


View raw message