Modified: qpid/site/docs/books/0.16/Programming-In-Apache-Qpid/html/section-amqp0-10-mapping.html URL: http://svn.apache.org/viewvc/qpid/site/docs/books/0.16/Programming-In-Apache-Qpid/html/section-amqp0-10-mapping.html?rev=1340196&r1=1340195&r2=1340196&view=diff ============================================================================== --- qpid/site/docs/books/0.16/Programming-In-Apache-Qpid/html/section-amqp0-10-mapping.html (original) +++ qpid/site/docs/books/0.16/Programming-In-Apache-Qpid/html/section-amqp0-10-mapping.html Fri May 18 18:08:54 2012 @@ -75,7 +75,7 @@ subject exactly). For more control the x-bindings element in the link properties must be used. </p></li><li class="listitem"><p> - For the XML exchange,<sup>[<a name="id492229" href="#ftn.id492229" class="footnote">12</a>]</sup> if a subject is specified it is + For the XML exchange,<sup>[<a name="idp32736032" href="#ftn.idp32736032" class="footnote">12</a>]</sup> if a subject is specified it is used as the binding key and an XQuery is defined that matches any message with that value for qpid.subject. Again this means that only messages whose @@ -104,12 +104,12 @@ <code class="varname">message-properties</code> struct, and <code class="varname">dp</code> refers to an AMQP 0-10 <code class="varname">delivery-properties</code> struct.</p><div class="table"><a name="table-amqp0-10-message-properties"></a><p class="title"><b>Table 2.9. Mapping to AMQP 0-10 Message Properties</b></p><div class="table-contents"><table summary="Mapping to AMQP 0-10 Message Properties" width="100%" border="1"><colgroup><col><col><col></colgroup><thead><tr><th>Python API</th><th>C++ API - <sup>[<a name="id492325" href="#ftn.id492325" class="footnote">a</a>]</sup> - </th><th>AMQP 0-10 Property<sup>[<a name="id492340" href="#ftn.id492340" class="footnote">b</a>]</sup></th></tr></thead><tbody><tr><td>msg.id</td><td>msg.{get,set}MessageId()</td><td>mp.message_id</td></tr><tr><td>msg.subject</td><td>msg.{get,set}Subject()</td><td>mp.application_headers["qpid.subject"]</td></tr><tr><td>msg.user_id</td><td>msg.{get,set}UserId()</td><td>mp.user_id</td></tr><tr><td>msg.reply_to</td><td>msg.{get,set}ReplyTo()</td><td>mp.reply_to<sup>[<a name="id492400" href="#ftn.id492400" class="footnote">c</a>]</sup></td></tr><tr><td>msg.correlation_id</td><td>msg.{get,set}CorrelationId()</td><td>mp.correlation_id</td></tr><tr><td>msg.durable</td><td>msg.{get,set}Durable()</td><td>dp.delivery_mode == delivery_mode.persistent<sup>[<a name="id492425" href="#ftn.id492425" class="footnote">d</a>]</sup></td></tr><tr><td>msg.priority</td><td>msg.{get,set}Priority()</td><td>dp.priority</td></tr><tr><td>msg.ttl</td><td>msg.{get,set}Ttl()</td><td>dp.ttl</td></tr ><tr><td>msg.redelivered</td><td>msg.{get,set}Redelivered()</td><td>dp.redelivered</td></tr><tr><td>msg.properties</td><td>msg.getProperties()/msg.setProperty()</td><td>mp.application_headers</td></tr><tr><td>msg.content_type</td><td>msg.{get,set}ContentType()</td><td>mp.content_type</td></tr></tbody><tbody > class="footnotes"><tr><td colspan="3"><div class="footnote"><p><sup>[<a >id="ftn.id492325" href="#id492325" class="para">a</a>] </sup> + <sup>[<a name="idp32747568" href="#ftn.idp32747568" class="footnote">a</a>]</sup> + </th><th>AMQP 0-10 Property<sup>[<a name="idp32749360" href="#ftn.idp32749360" class="footnote">b</a>]</sup></th></tr></thead><tbody><tr><td>msg.id</td><td>msg.{get,set}MessageId()</td><td>mp.message_id</td></tr><tr><td>msg.subject</td><td>msg.{get,set}Subject()</td><td>mp.application_headers["qpid.subject"]</td></tr><tr><td>msg.user_id</td><td>msg.{get,set}UserId()</td><td>mp.user_id</td></tr><tr><td>msg.reply_to</td><td>msg.{get,set}ReplyTo()</td><td>mp.reply_to<sup>[<a name="idp32756496" href="#ftn.idp32756496" class="footnote">c</a>]</sup></td></tr><tr><td>msg.correlation_id</td><td>msg.{get,set}CorrelationId()</td><td>mp.correlation_id</td></tr><tr><td>msg.durable</td><td>msg.{get,set}Durable()</td><td>dp.delivery_mode == delivery_mode.persistent<sup>[<a name="idp32759536" href="#ftn.idp32759536" class="footnote">d</a>]</sup></td></tr><tr><td>msg.priority</td><td>msg.{get,set}Priority()</td><td>dp.priority</td></tr><tr><td>msg.ttl</td><td>msg.{get,set}Ttl()</td>< td>dp.ttl</td></tr><tr><td>msg.redelivered</td><td>msg.{get,set}Redelivered()</td><td>dp.redelivered</td></tr><tr><td>msg.properties</td><td>msg.getProperties()/msg.setProperty()</td><td>mp.application_headers</td></tr><tr><td>msg.content_type</td><td>msg.{get,set}ContentType()</td><td>mp.content_type</td></tr></tbody><tbody class="footnotes"><tr><td colspan="3"><div class="footnote"><p><sup>[<a id="ftn.idp32747568" href="#idp32747568" class="para">a</a>] </sup> The .NET Binding for C++ Messaging provides all the message and delivery properties described in the C++ API. See <a class="xref" href="ch05s03.html#table-Dotnet-Binding-Message" title="Table 5.13. .NET Binding for the C++ Messaging API Class: Message">Table 5.13, â.NET Binding for the C++ Messaging API Class: Messageâ</a> . - </p></div><div class="footnote"><p><sup>[<a id="ftn.id492340" href="#id492340" class="para">b</a>] </sup>In these entries, <code class="literal">mp</code> refers to an AMQP message property, and <code class="literal">dp</code> refers to an AMQP delivery property.</p></div><div class="footnote"><p><sup>[<a id="ftn.id492400" href="#id492400" class="para">c</a>] </sup>The reply_to is converted from the protocol representation into an address.</p></div><div class="footnote"><p><sup>[<a id="ftn.id492425" href="#id492425" class="para">d</a>] </sup>Note that msg.durable is a boolean, not an enum.</p></div></td></tr></tbody></table></div></div><br class="table-break"><div class="section" title="2.16.1. 0-10 Message Property Keys"><div class="titlepage"><div><div><h3 class="title"><a name="section-amqp0-10-message-props"></a>2.16.1. 0-10 Message Property Keys</h3></div></div></div><p> + </p></div><div class="footnote"><p><sup>[<a id="ftn.idp32749360" href="#idp32749360" class="para">b</a>] </sup>In these entries, <code class="literal">mp</code> refers to an AMQP message property, and <code class="literal">dp</code> refers to an AMQP delivery property.</p></div><div class="footnote"><p><sup>[<a id="ftn.idp32756496" href="#idp32756496" class="para">c</a>] </sup>The reply_to is converted from the protocol representation into an address.</p></div><div class="footnote"><p><sup>[<a id="ftn.idp32759536" href="#idp32759536" class="para">d</a>] </sup>Note that msg.durable is a boolean, not an enum.</p></div></td></tr></tbody></table></div></div><br class="table-break"><div class="section" title="2.16.1. 0-10 Message Property Keys"><div class="titlepage"><div><div><h3 class="title"><a name="section-amqp0-10-message-props"></a>2.16.1. 0-10 Message Property Keys</h3></div></div></div><p> The QPID Messaging API also recognises special message property keys and automatically provides a mapping to their corresponding AMQP 0-10 definitions. </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p> @@ -136,8 +136,8 @@ (<code class="literal">delivery-properties.timestamp</code>), the timestamp value will be made available via the <code class="literal">x-amqp-0-10.timestamp</code> message property. - <sup>[<a name="id492594" href="#ftn.id492594" class="footnote">13</a>]</sup> - </p></li></ul></div><div class="example"><a name="id492605"></a><p class="title"><b>Example 2.20. Accessing the AMQP 0-10 Message Timestamp in Python</b></p><div class="example-contents"><p> + <sup>[<a name="idp32779824" href="#ftn.idp32779824" class="footnote">13</a>]</sup> + </p></li></ul></div><div class="example"><a name="idp32781104"></a><p class="title"><b>Example 2.20. Accessing the AMQP 0-10 Message Timestamp in Python</b></p><div class="example-contents"><p> The following code fragment checks for and extracts the message timestamp from a received message. </p><pre lang="python" class="programlisting"> @@ -147,7 +147,7 @@ print("Timestamp=%s" % str(msg.properties["x-amqp-0-10.timestamp"])) except Empty: pass - </pre></div></div><br class="example-break"><div class="example"><a name="id492625"></a><p class="title"><b>Example 2.21. Accessing the AMQP 0-10 Message Timestamp in C++</b></p><div class="example-contents"><p> + </pre></div></div><br class="example-break"><div class="example"><a name="idp32783488"></a><p class="title"><b>Example 2.21. Accessing the AMQP 0-10 Message Timestamp in C++</b></p><div class="example-contents"><p> The same example, except in C++. </p><pre lang="c++" class="programlisting"> messaging::Message msg; @@ -156,9 +156,9 @@ std::cout << "Timestamp=" << msg.getProperties()["x-amqp-0-10.timestamp"].asString() << std::endl; } } - </pre></div></div><br class="example-break"></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a id="ftn.id492229" href="#id492229" class="para">12</a>] </sup>Note that the XML + </pre></div></div><br class="example-break"></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"><p><sup>[<a id="ftn.idp32736032" href="#idp32736032" class="para">12</a>] </sup>Note that the XML exchange is not a standard AMQP exchange type. It is a Qpid extension and is currently only supported by the C++ - broker.</p></div><div class="footnote"><p><sup>[<a id="ftn.id492594" href="#id492594" class="para">13</a>] </sup> + broker.</p></div><div class="footnote"><p><sup>[<a id="ftn.idp32779824" href="#idp32779824" class="para">13</a>] </sup> This special property is currently not supported by the Qpid JMS client. </p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch02s15.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch02.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="Message-Groups-Guide.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">2.15. Logging </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 2.17. Using Message Groups</td></tr></table></div></body></html>
Modified: qpid/site/docs/books/0.16/Programming-In-Apache-Qpid/pdf/Programming-In-Apache-Qpid.fo URL: http://svn.apache.org/viewvc/qpid/site/docs/books/0.16/Programming-In-Apache-Qpid/pdf/Programming-In-Apache-Qpid.fo?rev=1340196&r1=1340195&r2=1340196&view=diff ============================================================================== --- qpid/site/docs/books/0.16/Programming-In-Apache-Qpid/pdf/Programming-In-Apache-Qpid.fo (original) +++ qpid/site/docs/books/0.16/Programming-In-Apache-Qpid/pdf/Programming-In-Apache-Qpid.fo Fri May 18 18:08:54 2012 @@ -1,42 +1,42 @@ <?xml version="1.0"?> [... 1232 lines stripped ...] Modified: qpid/site/docs/books/0.16/Programming-In-Apache-Qpid/pdf/Programming-In-Apache-Qpid.pdf URL: http://svn.apache.org/viewvc/qpid/site/docs/books/0.16/Programming-In-Apache-Qpid/pdf/Programming-In-Apache-Qpid.pdf?rev=1340196&r1=1340195&r2=1340196&view=diff ============================================================================== Binary files - no diff available. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
