Author: buildbot
Date: Fri Aug 3 18:17:56 2012
New Revision: 827875
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/sjms.html
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/sjms.html
==============================================================================
--- websites/production/camel/content/sjms.html (original)
+++ websites/production/camel/content/sjms.html Fri Aug 3 18:17:56 2012
@@ -130,7 +130,69 @@ sjms:topic:Stocks.Prices
<p>You append query options to the URI using the following format,
<tt>?option=value&option=value&...</tt></p>
-<h3><a shape="rect" name="SJMS-Notes"></a>Notes</h3>
+<h3><a shape="rect"
name="SJMS-SjmsComponentOptionsandConfigurations"></a>SjmsComponent Options and
Configurations</h3>
+
+<p>Below is an example of how to configure the SjmsComponent with its required
ConnectionFactory provider. It will create a single connection by default and
store it using the components internal pooling APIs to ensure that it is able
to service Session creation requests in a thread safe manner.</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<pre class="code-java">
+SjmsComponent component = <span class="code-keyword">new</span>
SjmsComponent();
+component.setConnectionFactory(<span class="code-keyword">new</span>
ActiveMQConnectionFactory(<span class="code-quote">"tcp:<span
class="code-comment">//localhost:61616"</span>));
+</span>getContext().addComponent(<span class="code-quote">"sjms"</span>,
component);
+</pre>
+</div></div>
+
+<p>For a SjmsComponent that is required to support a durable subscription, you
can override the default ConnectionFactoryResource instance and set the
<b>clientId</b> property.</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<pre class="code-java">
+ConnectionFactoryResource connectionResource = <span
class="code-keyword">new</span> ConnectionFactoryResource();
+connectionResource.setConnectionFactory(<span class="code-keyword">new</span>
ActiveMQConnectionFactory(<span class="code-quote">"tcp:<span
class="code-comment">//localhost:61616"</span>));
+</span>connectionResource.setClientId(<span
class="code-quote">"myclient-id"</span>);
+
+SjmsComponent component = <span class="code-keyword">new</span>
SjmsComponent();
+component.setConnectionResource(connectionResource);
+component.setMaxConnections(1);
+</pre>
+</div></div>
+
+<h3><a shape="rect" name="SJMS-Producers"></a>Producers</h3>
+
+<p>The SjmsProducer Endpoint supports the following properties:</p>
+
+<div class="confluenceTableSmall"><div class="table-wrap">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"> Option </th><th colspan="1" rowspan="1"
class="confluenceTh"> Default Value </th><th colspan="1" rowspan="1"
class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>acknowledgementMode</tt> </td><td colspan="1"
rowspan="1" class="confluenceTd"> <tt>AUTO_ACKNOWLEDGE</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> The JMS acknowledgement name,
which is one of: <tt>TRANSACTED</tt>, <tt>CLIENT_ACKNOWLEDGE</tt>,
<tt>AUTO_ACKNOWLEDGE</tt>, <tt>DUPS_OK_ACKNOWLEDGE</tt> </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>consumerCount</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>1</tt> </td><td colspan="1"
rowspan="1" class="confluenceTd"> Defines the number of MessageListener
instances that will be used with the InOut endpoint. </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>exc
hangePattern</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<tt>InOnly</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Sets
the Producers message exchange pattern. </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> <tt>namedReplyTo</tt> </td><td colspan="1"
rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1"
rowspan="1" class="confluenceTd"> Specifies a named reply to destination for
InOut endpoint. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">
<tt>producerCount</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<tt>1</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Defines the
number of MessageProducer instances. </td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>responseTimeOut</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>5000</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> Specifies the amount of time an InOutProducer will wait f
or its response. </td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>synchronous</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> Sets whether the Endpoint will use synchronous or
asynchronous processing. </td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>ttl</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>-1</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> Disabled by default. Sets the Message time to live
header. </td></tr></tbody></table>
+</div>
+</div>
+
+<h4><a shape="rect" name="SJMS-InOnlyProducer%28Default%29"></a>InOnly
Producer - (Default)</h4>
+
+<p>The InOnly Producer is the default behavior of the SJMS Producer
Endpoint.</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<pre class="code-java">
+from(<span class="code-quote">"direct:start"</span>)
+ .to(<span class="code-quote">"sjms:queue:bar"</span>);
+</pre>
+</div></div>
+
+<h4><a shape="rect" name="SJMS-InOutProducer"></a>InOut Producer</h4>
+
+<p>To enable InOut behavior with the </p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<pre class="code-java">
+from(<span class="code-quote">"direct:start"</span>)
+ .to(<span
class="code-quote">"sjms:queue:bar?exchangePattern=InOut"</span>);
+</pre>
+</div></div>
+
+<h4><a shape="rect" name="SJMS-SJMSConsumer"></a>SJMS Consumer</h4>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<pre class="code-java">
+</pre>
+</div></div>
<h4><a shape="rect" name="SJMS-Transactions"></a>Transactions <a shape="rect"
name="SJMS-transactionCacheLevels"></a></h4>