[openamq-dev] PAL examples
Martin Sustrik
sustrik at imatix.com
Fri Mar 30 11:25:34 CEST 2007
Carl,
> If you start the sender ( send a file onto the queue ) then start the
> receiver it doesn't retrieve any files.
>
> But if you start the receiver ( waiting for a file ) then start the
> sender the receiver gets the file.
>
> This seems pointless as if your receiver goes down and the senders send
> loads of files you will loss them.
>
> Sure there must be a setting somewhere.
The problem is 'auto-delete' flag on the
amq_client_session_queue_declare in receive_file.c
Auto-delete means that the queue (with all the messages it contains is
destroyed when the owning application closes the connection).
If you want your queue to persist on the broker even if there is no
receiver connected, set auto-delete to false.
Martin
More information about the openamq-dev
mailing list