activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cristisor <cristisor...@yahoo.com>
Subject Re: Some problem of BlobMessage
Date Thu, 05 Sep 2013 06:20:43 GMT
To delete the file uploaded on the FTP server you can set the following on
the blob message consumer:
BlobTransferPolicy btp = new BlobTransferPolicy();
btp.setUploadUrl(blobMessage.getURL().toString());
BlobDownloadStrategy strategy = new FTPBlobDownloadStrategy(btp);
strategy.deleteFile(blobMessage);

This works for sure on a queue but on a topic you might have to test if the
first consumer which receives the file doesn't also delete it, and the next
consumers fail when trying to download it. Maybe ActiveMQ deletes the file
only after all the subscribers have received it, but I don't know for sure.

Regards,
Cristian.



--
View this message in context: http://activemq.2283324.n4.nabble.com/Some-problem-of-BlobMessage-tp4670623p4671208.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message