activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r1018019 - in /websites/production/activemq/content: cache/main.pageCache configuring-wire-formats.html
Date Tue, 12 Sep 2017 00:50:35 GMT
Author: buildbot
Date: Tue Sep 12 00:50:35 2017
New Revision: 1018019

Log:
Production update by buildbot for activemq

Modified:
    websites/production/activemq/content/cache/main.pageCache
    websites/production/activemq/content/configuring-wire-formats.html

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

Modified: websites/production/activemq/content/configuring-wire-formats.html
==============================================================================
--- websites/production/activemq/content/configuring-wire-formats.html (original)
+++ websites/production/activemq/content/configuring-wire-formats.html Tue Sep 12 00:50:35
2017
@@ -81,7 +81,7 @@
   <tbody>
         <tr>
         <td valign="top" width="100%">
-<div class="wiki-content maincontent"><h3 id="ConfiguringWireFormats-TheOpenWireWireFormat">The
OpenWire Wire Format</h3><p>OpenWire is the default wire format used by ActiveMQ.&#160;
It provides a highly efficient binary format for high speed messaging.&#160; OpenWire
options can be configured on a JMS client's connection URI or on a broker's transport bind
URI.</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th
colspan="1" rowspan="1" class="confluenceTh"><p>Option</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Default Value</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><code>cacheEnabled</code></td><td
colspan="1" rowspan="1" class="confluenceTd"><code>true</code></td><td
colspan="1" rowspan="1" class="confluenceTd">Should commonly repeated values be cached
so that less marshaling occurs?</td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><code
 >cacheSize</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>1024</code></td><td
colspan="1" rowspan="1" class="confluenceTd">When&#160;<strong><code>cacheEnabled=true</code></strong>
then this parameter is used to specify the number of values to be cached.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><code>maxInactivityDuration</code></td><td
colspan="1" rowspan="1" class="confluenceTd"><code>30000</code></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The maximum <a shape="rect" href="activemq-inactivitymonitor.html">inactivity</a>
duration (before which the socket is considered dead) in milliseconds. On some platforms it
can take a long time for a socket to die. Therefore allow the broker to kill connections when
they have been inactive for the configured period of time. Used by some transports to enable
a keep alive heart beat feature.</p><p>Inactivity monitoring is disabled when
set to a value <strong><code>&lt;= 0</code></strong>.</p></
 td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>maxInactivityDurationInitalDelay</code></td><td
colspan="1" rowspan="1" class="confluenceTd"><code>10000</code></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The initial delay before starting
<a shape="rect" href="activemq-inactivitymonitor.html">inactivity</a> checks.</p><p>Yes,
the word&#160;<strong><code>'Inital'</code></strong> is supposed
to be misspelled like that.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><pre><code>maxFrameSize</code></pre></td><td
colspan="1" rowspan="1" class="confluenceTd"><pre><code>MAX_LONG</code></pre></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Maximum allowed frame size. Can help
help prevent OOM DOS attacks.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><code>sizePrefixDisabled</code></td><td
colspan="1" rowspan="1" class="confluenceTd"><code>false</code></td><td
colspan="1" rowspan="1" class="confluenceTd">Should the 
 size of the packet be prefixed before each packet is marshaled?</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><code>stackTraceEnabled</code></td><td
colspan="1" rowspan="1" class="confluenceTd"><code>true</code></td><td
colspan="1" rowspan="1" class="confluenceTd">Should the stack trace of exception that occur
on the broker be sent to the client?</td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><code>tcpNoDelayEnabled</code></td><td colspan="1"
rowspan="1" class="confluenceTd"><code>true</code></td><td colspan="1"
rowspan="1" class="confluenceTd">Does not affect the wire format, but provides a hint to
the peer that&#160;<strong><code>TCP_NODELAY</code></strong> should
be enabled on the communications Socket.</td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><code>tightEncodingEnabled</code></td><td
colspan="1" rowspan="1" class="confluenceTd"><code>true</code></td><td
colspan="1" rowspan="1" class="confluenceTd">Should wire size be optimized 
 over CPU usage?</td></tr></tbody></table></div><div class="confluence-information-macro
confluence-information-macro-warning"><p class="title">Use the Correct Prefix!</p><span
class="aui-icon aui-icon-small aui-iconfont-error confluence-information-macro-icon"></span><div
class="confluence-information-macro-body"><p>Wire format options must have the prefix&#160;<strong><code>wireFormat.</code></strong>
to take effect, e.g.,&#160;<strong><code>wireFormat.maxInactivityDuration=10000</code></strong>.
Options missing this prefix will be ignored.</p></div></div><h4 id="ConfiguringWireFormats-ExampleConfigurations">Example
Configurations</h4><p><strong>Java:</strong></p><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<div class="wiki-content maincontent"><h3 id="ConfiguringWireFormats-TheOpenWireWireFormat">The
OpenWire Wire Format</h3><p>OpenWire is the default wire format used by ActiveMQ.&#160;
It provides a highly efficient binary format for high speed messaging.&#160; OpenWire
options can be configured on a JMS client's connection URI or on a broker's transport bind
URI.</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th
colspan="1" rowspan="1" class="confluenceTh"><p>Option</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Default</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>cacheEnabled</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Should commonly repeated values be
cached so that less marshaling occurs?</p></td></tr><tr><td colspan="1"
rowspan="1" class="conf
 luenceTd"><p><code>cacheSize</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>1024</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>When&#160;<strong><code>cacheEnabled=true</code></strong>
then this parameter is used to specify the number of values to be cached.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>maxInactivityDuration</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>30000</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The maximum <a shape="rect" href="activemq-inactivitymonitor.html">inactivity</a>
duration (before which the socket is considered dead) in milliseconds. On some platforms it
can take a long time for a socket to die. Therefore allow the broker to kill connections when
they have been inactive for the configured period of time. Used by some transports to enable
a keep alive heart beat feature.</p><p>Inactivity monitoring is disabled when
set to a 
 value <strong><code>&lt;= 0</code></strong>.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>maxInactivityDurationInitalDelay</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>10000</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The initial delay before starting
<a shape="rect" href="activemq-inactivitymonitor.html">inactivity</a> checks.</p><p>Yes,
the word&#160;<strong><code>'Inital'</code></strong> is supposed
to be misspelled like that.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>maxFrameSize</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>MAX_LONG</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Maximum allowed frame size. Can help
help prevent OOM DOS attacks.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>sizePrefixDisabled</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code
 ></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Should
the size of the packet be prefixed before each packet is marshaled?</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>stackTraceEnabled</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Should the stack trace of exception
that occur on the broker be sent to the client?</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>tcpNoDelayEnabled</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Does not affect the wire format,
but provides a hint to the peer that&#160;<strong><code>TCP_NODELAY</code></strong>
should be enabled on the communications Socket.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>tightEncodingEnabled</code></p></td><td
colspan="1" rowspan=
 "1" class="confluenceTd"><p><code>true</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Should wire size be optimized over
CPU usage?</p></td></tr></tbody></table></div><div
class="confluence-information-macro confluence-information-macro-warning"><p class="title">Use
the Correct Prefix!</p><span class="aui-icon aui-icon-small aui-iconfont-error confluence-information-macro-icon"></span><div
class="confluence-information-macro-body"><p>Wire format options must have the prefix&#160;<strong><code>wireFormat.</code></strong>
to take effect, e.g.,&#160;<strong><code>wireFormat.maxInactivityDuration=10000</code></strong>.
Options missing this prefix will be ignored.</p></div></div><h4 id="ConfiguringWireFormats-ExampleConfigurations">Example
Configurations</h4><p><strong>Java:</strong></p><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <pre class="brush: java; gutter: false; theme: Confluence" style="font-size:12px;">ActiveMQConnectionFactory
cf = new ActiveMQConnectionFactory("tcp://localhost:61616?wireFormat.cacheEnabled=false&amp;wireFormat.tightEncodingEnabled=false");</pre>
 </div></div><p><strong><br clear="none"></strong></p><p>&#160;</p><p><strong>Spring:</strong></p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <pre class="brush: xml; gutter: false; theme: Confluence" style="font-size:12px;">&lt;bean
class="org.apache.activemq.ActiveMQConnectionFactory"&gt;



Mime
View raw message