<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Ben Hood wrote:
<blockquote
cite="mid269388e30811210834o1f50e118n4474cf83ae95f9a0@mail.gmail.com"
type="cite">
<pre wrap="">Tsuraan,
On Fri, Nov 21, 2008 at 3:27 PM, tsuraan <a class="moz-txt-link-rfc2396E" href="mailto:tsuraan@gmail.com"><tsuraan@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">Why are you using tx in the above? It won't do any harm, but it doesn't
seem to serve any purpose.
</pre>
</blockquote>
<pre wrap="">It's a stripped-down version of a larger program that does use a
transaction in a less wasteful fashion.
</pre>
</blockquote>
<pre wrap=""><!---->
That still doesn't explain why you're using it though. It is for
intents and purposes, a semantic NOOP.
</pre>
<blockquote type="cite">
<pre wrap="">Yup, putting in chan.close() and conn.close() gets all the messages
delivered. Is there a way to ensure message delivery without using a
transaction or closing the channel? Some sort of flush method, or
another flag on the basic_publish method that I didn't notice? I've
noticed the wait() methods, but I'm not really clear on what they do,
or how to use them.
</pre>
</blockquote>
<pre wrap=""><!---->
I'm slightly confused. You're now talking about about the sending side
but your code beforehand was an example of a consumer.
As an aside, on the sending side, you could use the immediate or
mandatory flags to get the broker to *indicate it's inability* to
deliver a message without you having to use a transaction, but I'm not
sure those are the semantics you want.
Ben
</pre>
</blockquote>
my guess... <br>
<br>
It sounds like he just wants to know at some point whether all messages
<br>
sent were actually received. The acknowledgements go on at the <br>
protocol level, well and good. It isn´t clear how the client
application will ´know´<br>
that the messages sent were acknowledged.<br>
<br>
is there a configuration where ´wait´ will block until all pending
messages are acknowledged ?<br>
<br>
<br>
<br>
<blockquote
cite="mid269388e30811210834o1f50e118n4474cf83ae95f9a0@mail.gmail.com"
type="cite">
<pre wrap="">
_______________________________________________
rabbitmq-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a>
<a class="moz-txt-link-freetext" href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a>
</pre>
</blockquote>
<br>
</body>
</html>