activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jinglong Wang <nogr...@gmail.com>
Subject Re: Please Help Me..
Date Fri, 30 Aug 2013 02:23:41 GMT
thank you very much
may be i will create a task to cleanup the ftp files.
thank u Tully.
> 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
> application.
>
> 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 <nogrief@gmail.com> 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 -
>>>
>>> https://github.com/apache/activemq/blob/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/blob/FTPBlobTest.java
>>>
>>> On 27 August 2013 08:45, Jinglong Wang <nogrief@gmail.com> 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
>>>
>>>
>
>


Mime
View raw message