Author: buildbot
Date: Thu May 19 15:22:02 2016
New Revision: 988632

Log:
Production update by buildbot for activemq

Modified:
    websites/production/activemq/content/cache/nms.pageCache
    websites/production/activemq/content/nms/examples.html

Modified: websites/production/activemq/content/cache/nms.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/activemq/content/nms/examples.html
==============================================================================
--- websites/production/activemq/content/nms/examples.html (original)
+++ websites/production/activemq/content/nms/examples.html Thu May 19 15:22:02 
2016
@@ -81,13 +81,8 @@
   <tbody>
         <tr>
         <td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2 id="Examples-Examples">Examples</h2>
-
-<p>The following example gives a brief demonstration for connecting, sending 
and receiving a message using NMS.</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader 
panelHeader pdl" style="border-bottom-width: 1px;"><b>Sync NMS 
Example</b></div><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">
-using System;
+<div class="wiki-content maincontent"><h2 
id="Examples-Examples">Examples</h2><p>The following example gives a brief 
demonstration for connecting, sending and receiving a message using 
NMS.</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>Sync 
NMS Example</b></div><div class="codeContent panelContent pdl">
+<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">using System;
 using Apache.NMS;
 using Apache.NMS.Util;
 
@@ -146,9 +141,9 @@ public class TestMain
             {
                 // Start the connection so that messages will be processed.
                 connection.Start();
-                producer.Persistent = true;
+                producer.DeliveryMode = MsgDeliveryMode.Persistent;
 
-                // Send a message
+               &#160;// Send a message
                 ITextMessage request = session.CreateTextMessage("Hello 
World!");
                 request.NMSCorrelationID = "abc";
                 request.Properties["NMSXGroupID"] = "cheese";
@@ -173,16 +168,8 @@ public class TestMain
 }
 }
 </pre>
-</div></div>
-
-<h3 id="Examples-Asynchronousconsumption">Asynchronous consumption</h3>
-
-<p>You have the choice of synchronously pulling messages via the Receive() 
methods as shown above, or you can use the asynchronous approach demonstrated 
in the following example:</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader 
panelHeader pdl" style="border-bottom-width: 1px;"><b>Async NMS 
Example</b></div><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">
-
-using System;
+</div></div><h3 id="Examples-Asynchronousconsumption">Asynchronous 
consumption</h3><p>You have the choice of synchronously pulling messages via 
the Receive() methods as shown above, or you can use the asynchronous approach 
demonstrated in the following example:</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeHeader panelHeader pdl" 
style="border-bottom-width: 1px;"><b>Async NMS Example</b></div><div 
class="codeContent panelContent pdl">
+<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">using System;
 using System.Threading;
 using Apache.NMS;
 using Apache.NMS.Util;
@@ -286,11 +273,7 @@ public class TestMain
 }
 
 </pre>
-</div></div>
-
-<p>The above uses a C# <strong>delegate</strong> so that the OnMessage() 
method will be called whenever a message arrives.</p>
-
-<p>Note that the threading contract is similar to that of JMS - messages are 
dispatched for a single session's consumers in one thread at once. Consumers in 
different sessions can process messages concurrently, but consumers in the same 
session are guarenteed to be called by only one thread at a time (e.g., if you 
have 3 consumers on a session, then only one of the consumers will be called 
concurrently).</p></div>
+</div></div><p>The above uses a C# <strong>delegate</strong> so that the 
OnMessage() method will be called whenever a message arrives.</p><p>Note that 
the threading contract is similar to that of JMS - messages are dispatched for 
a single session's consumers in one thread at once. Consumers in different 
sessions can process messages concurrently, but consumers in the same session 
are guarenteed to be called by only one thread at a time (e.g., if you have 3 
consumers on a session, then only one of the consumers will be called 
concurrently).</p></div>
         </td>
         <td valign="top">
           <div class="navigation">


Reply via email to