[jboss-cvs] JBoss Messaging SVN: r6931 - trunk/docs/user-manual/en.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed May 20 10:29:10 EDT 2009


Author: ataylor
Date: 2009-05-20 10:29:10 -0400 (Wed, 20 May 2009)
New Revision: 6931

Modified:
   trunk/docs/user-manual/en/scheduled-messages.xml
Log:
reformatted code and tables for scheduled messages doc

Modified: trunk/docs/user-manual/en/scheduled-messages.xml
===================================================================
--- trunk/docs/user-manual/en/scheduled-messages.xml	2009-05-20 14:21:13 UTC (rev 6930)
+++ trunk/docs/user-manual/en/scheduled-messages.xml	2009-05-20 14:29:10 UTC (rev 6931)
@@ -1,31 +1,34 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <chapter id="scheduled-messages">
    <title>Scheduled Messages</title>
-   <para>Scheduled messages are delivered at a time specified by the sender rather than when request by the receiver.</para>
-   <para>Messages are scheduled for later delivery if they have a well-known scheduled delivery property set.</para>
-   
+   <para>Scheduled messages are delivered at a time specified by the sender rather than when request
+      by the receiver.</para>
+   <para>Messages are scheduled for later delivery if they have a well-known scheduled delivery
+      property set.</para>
    <section>
       <title>Scheduled Delivery Property</title>
-      <para>The property name used to identify a scheduled message is <literal>"_JBM_SCHED_DELIVERY"</literal> (or
-      the constant <literal>MessageImpl.HDR_SCHEDULED_DELIVERY_TIME</literal>).</para>
-      <para>The specified value must be a <literal>long</literal> corresponding to the time the message
-      must be delivered (in milliseconds).</para>
+      <para>The property name used to identify a scheduled message is <literal
+            >"_JBM_SCHED_DELIVERY"</literal> (or the constant <literal
+            >MessageImpl.HDR_SCHEDULED_DELIVERY_TIME</literal>).</para>
+      <para>The specified value must be a <literal>long</literal> corresponding to the time the
+         message must be delivered (in milliseconds).</para>
       <programlisting>
-         TextMessage message = session.createTextMessage("This is a scheduled message message which will be delivered in 5 sec.");
-         message.setLongProperty("_JBM_SCHED_DELIVERY", System.currentTimeMillis() + 5000);
-         producer.send(message);
+  TextMessage message = 
+   session.createTextMessage("This is a scheduled message message which will be delivered
+     in 5 sec.");
+  message.setLongProperty("_JBM_SCHED_DELIVERY", System.currentTimeMillis() + 5000);
+  producer.send(message);
 
-         ...
+  ...
          
-         // message will not be received immediately but 5 seconds later
-         TextMessage messageReceived = (TextMessage) consumer.receive();
+  // message will not be received immediately but 5 seconds later
+  TextMessage messageReceived = (TextMessage) consumer.receive();
         </programlisting>
    </section>
-         
    <section>
       <title>Example</title>
-      <para>The <ulink url="../../../../examples/jms/scheduled-message/readme.html"><literal>scheduled-message</literal> example</ulink> shows
-      how scheduled messages can be used with JMS.</para>
+      <para>The <ulink url="../../../../examples/jms/scheduled-message/readme.html"><literal
+               >scheduled-message</literal> example</ulink> shows how scheduled messages can be used
+         with JMS.</para>
    </section>
-   
 </chapter>




More information about the jboss-cvs-commits mailing list