[openamq-dev] Content File Publish
Pieter Hintjens
ph at imatix.com
Tue Sep 4 10:56:07 CEST 2007
On 9/4/07, liushi_80_80 at hotmail.com <liushi_80_80 at hotmail.com> wrote:
> I need to use OpenAMQ to publish files, but I don't know how to use
> amq_client_session_file_publish. Can you give me some suggestions or
> examples?
The file class is not implemented (neither is stream). To publish
files, use the Basic class. You can send messages of any size, but if
you want to send very large files, you should send them in chunks, as
separate messages. (Otherwise they are queued in the server and will
cause memory overflows).
I believe Martin Sustrik has a simple example of reading/writing files
across AMQP as Basic messages. Martin?
-Pieter
More information about the openamq-dev
mailing list