[openamq-dev] PAL examples
Carl Bourne
cbourne at intellect.co.uk
Fri Mar 30 11:43:00 CEST 2007
Thanks Martin,
Also I have to say your response times to questions are unbelievable :-)
- Just wish some of our commercial vendors were as helpful. Just what we
need when starting to work with a new technology! - Thanks again.
Carl
-----Original Message-----
From: openamq-dev-bounces at lists.openamq.org
[mailto:openamq-dev-bounces at lists.openamq.org] On Behalf Of Martin
Sustrik
Sent: 30 March 2007 10:26
To: OpenAMQ development discussion
Subject: Re: [openamq-dev] PAL examples
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
_______________________________________________
openamq-dev mailing list
openamq-dev at lists.openamq.org
http://lists.openamq.org/mailman/listinfo/openamq-dev
More information about the openamq-dev
mailing list