qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r961663 - /qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml
Date Thu, 08 Jul 2010 09:30:00 GMT
Author: gsim
Date: Thu Jul  8 09:30:00 2010
New Revision: 961663

URL: http://svn.apache.org/viewvc?rev=961663&view=rev
Log:
Add acknowledge() to python snippet for consistency

Modified:
    qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml

Modified: qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml?rev=961663&r1=961662&r2=961663&view=diff
==============================================================================
--- qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml (original)
+++ qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml Thu Jul  8 09:30:00 2010
@@ -1126,7 +1126,7 @@ spout - -content "$(cat rdu.xml | sed -e
                 that resolve to a queue. If browse is specified the
                 messages delivered to the receiver are left on the queue
                 rather than being removed. If consume is specified the
-                normal behaviour applies; messages are removed from teh
+                normal behaviour applies; messages are removed from the
                 queue once the client acknoweldges their receipt.
 	      </entry>
 	    </row>
@@ -1487,8 +1487,8 @@ Receiver receiver1 = session.createRecei
 Receiver receiver2 = session.createReceiver(address2);
 
 Message message =  session.nextReceiver().fetch();
-session.acknowledge(); // acknowledge message receipt
 std::cout << message.getContent() << std::endl;
+session.acknowledge(); // acknowledge message receipt
 ]]>	  </programlisting>
 
 	<para>Python:</para>
@@ -1497,6 +1497,7 @@ receiver1 = session.receiver(address1)
 receiver2 = session.receiver(address)
 message = session.next_receiver().fetch()
 print message.content
+session.acknowledge()
 ]]>	  </programlisting>
 
 	<para>.NET C#:</para>
@@ -1506,8 +1507,8 @@ Receiver receiver2 = session.CreateRecei
 
 Message message = new Message();
 message =  session.NextReceiver().Fetch();
-session.Acknowledge();
 Console.WriteLine("{0}", message.GetContent());
+session.Acknowledge();
 ]]>	  </programlisting>
 
       </example>



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message