<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
If i enable confirms [1], then:<br>
<br>
"The broker will confirm messages once:<br>
<br>
* it decides a message will not be routed to queues (if the
mandatory flag is set then the basic.return is sent first) or<br>
* a transient message has reached all its queues (and mirrors) or<br>
* a persistent message has reached all its queues (and mirrors) and
been persisted to disk (and fsynced) or<br>
* a persistent message has been consumed (and if necessary
acknowledged) from all its queues"<br>
<br>
So, if i send a persistent message (delivery mode = 2) to a
non-durable exchange which routes to a non-durable queue, then i
will only get a confirmation once the message has been consumed from
that queue, right? And if my consumer is not set to
auto-acknowledge, then i will only get a confirmation once the
consumer has acknowledged the message, right?<br>
<br>
This does not seem to be happening for me. I get a confirmation 12
milliseconds after sending the message, but i know the
acknowledgement isn't being sent for another whole second. I can't
tell if the confirmation is being sent when the broker receives the
message, gives it to an exchange, puts it in a queue, or delivers it
to a consumer, since all those things happen in very rapid
succession.<br>
<br>
Any ideas as to what i should look into?<br>
<br>
I'm using the Java API, if that matters.<br>
<br>
Cheers,<br>
tom<br>
<br>
[1] <a class="moz-txt-link-freetext" href="http://www.rabbitmq.com/confirms.html">http://www.rabbitmq.com/confirms.html</a><br>
<br>
<div class="moz-signature">-- <br>
<p>Tom Anderson | Developer | +44 20 7826 4312 | <a
href="http://timgroup.com/">timgroup.com</a></p>
<div style="color:DarkGrey; font-size: small;">
<p>STATEMENT OF CONFIDENTIALITY: The information contained in
this electronic message and any attachments to this message
are intended for the exclusive use of the addressee(s) and may
contain confidential or privileged information. If you are not
the intended recipient, please notify Tom Anderson at TIM
Group at <a class="moz-txt-link-abbreviated" href="mailto:tom.anderson@timgroup.com">tom.anderson@timgroup.com</a> and destroy all copies of
this message and any attachments.</p>
<p>TIM Group is the trading name for YouDevise Limited.
YouDevise Limited is registered in England, No. 3331176.
Registered office: 3 Copthall Avenue, London, EC2R 7BH.</p>
</div>
</div>
</body>
</html>