Permalink
Browse files

i

git-svn-id: file:///Users/billburke/jboss/resteasy/resteasy-git/svn-server-sync/resteasy/trunk/rest-star/messaging@1286 2b1ed4c4-5db3-0410-90e4-80a7a6204c25
  • Loading branch information...
patriot1burke
patriot1burke committed Jan 3, 2011
1 parent 5b857ea commit ed32bf4f26ce3a314024b2659724d52a656eac29
Showing with 17 additions and 3 deletions.
  1. +17 −3 session-interface/docbook/reference/en/master.xml
@@ -605,7 +605,7 @@ msg-create-with-id: http://example.com/queues/jms.queue.bar/create/{id}
<literal>msg-create</literal> header.</para>
<para><programlisting>POST /queues/jms.queue.bar/create
-Host: example.xom
+Host: example.com
Content-Type: application/xml
&lt;order&gt;
@@ -687,7 +687,7 @@ msg-create-with-id: http://example.com/queues/jms.queue.bar/create/{id}
<literal>msg-create</literal> header.</para>
<para><programlisting>POST /queues/jms.queue.bar/create
-Host: example.xom
+Host: example.com
Content-Type: application/xml
&lt;order&gt;
@@ -799,7 +799,7 @@ msg-create-next: http://example.com/queues/jms.queue.bar/create/003</programlist
that.</para>
<programlisting>POST /queues/jms.queue.bar/create?durable=true
-Host: example.xom
+Host: example.com
Content-Type: application/xml
&lt;order&gt;
@@ -809,6 +809,20 @@ Content-Type: application/xml
&lt;/order&gt;
</programlisting>
</sect1>
+ <sect1>
+ <title>Expiration and Priority</title>
+ <para>You can set he expiration and the priority of the message in the queue or topic by setting an additional query parameter. The <literal>expiration</literal> query parameter is an integer expressing the time in milliseconds until the message should be expired. The <literal>priority</literal> is another query parameter with an integer value between 0 and 9 expressing the priority of the message. i.e.:</para>
+ <programlisting>POST /queues/jms.queue.bar/create?expiration=30000&amp;priority=3
+Host: example.com
+Content-Type: application/xml
+
+&lt;order&gt;
+ &lt;name&gt;Bill&lt;/name&gt;
+ &lt;item&gt;iPhone4&lt;/item&gt;
+ &lt;cost&gt;$199.99&lt;/cost&gt;
+&lt;/order&gt;
+</programlisting>
+ </sect1>
</chapter>
<chapter>

0 comments on commit ed32bf4

Please sign in to comment.