activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: How to send file using ActiveMQ
Date Fri, 22 Jun 2007 07:11:09 GMT
On 6/21/07, Gaurav Hariani <gaurav@blackspark.com> wrote:
> We have a similar need and after trying a number of approaches we
> settled on the following approach:
>
> The producer creates a file in a directory where it can be served by a
> webserver e.g. ~gaurav/public_html/large_messages/xyzABC123.zip
> Then the producer sends the URL of this file as a text message
> http://server/~gaurav/public_html/large_messages/xyzABC123.zip
> Consumers read the message and retrieve the file using the contained URL.
> After a specified interval the producer cleans up the files it has
> produced (you could change this policy depending on your specific needs)

BTW the BlobMessage is a nicer option; as it allows you to send files
directly from the producer; or to pass a remote URL of the file. From
the consumer side it doesn't know the difference; its just a URL to
download etc
-- 
James
-------
http://macstrac.blogspot.com/

Mime
View raw message