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.

Reply via email to