activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r1024955 - in /websites/production/activemq/content: cache/main.pageCache mqtt.html
Date Tue, 06 Feb 2018 18:23:42 GMT
Author: buildbot
Date: Tue Feb  6 18:23:41 2018
New Revision: 1024955

Log:
Production update by buildbot for activemq

Modified:
    websites/production/activemq/content/cache/main.pageCache
    websites/production/activemq/content/mqtt.html

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

Modified: websites/production/activemq/content/mqtt.html
==============================================================================
--- websites/production/activemq/content/mqtt.html (original)
+++ websites/production/activemq/content/mqtt.html Tue Feb  6 18:23:41 2018
@@ -89,7 +89,7 @@
 </pre>
 </div></div><h3 id="MQTT-TheMQTTWireFormat">The MQTT Wire Format</h3><p>MQTT
uses a compact binary format that can be configured with the following options. &#160;All
options can be configured on a Brokers transport bind URI.</p><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Parameter
Name</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"><p>maxFrameSize</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>268435456</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>(v5.12.0) Maximum frame size that
can be sent. The protocol limit is 256 megabytes and his value cannot be set higher. Can help
help prevent OOM DOS attacks</p></td></tr></tbody></table></div><p>All
options must be prepended with&#160;<code>wireFormat</code>&#160;in order
to t
 ake effect. Without this proper formatting, the option will have zero effect.</p><h4
id="MQTT-ExampleWireFormatConfiguration">Example Wire Format Configuration<br clear="none">&#160;</h4><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">  
  &lt;transportConnector name="mqtt" uri="mqtt://localhost:61612?wireFormat.maxFrameSize=100000"/&gt;</pre>
-</div></div><h3 id="MQTT-Security">Security</h3><p>The ActiveMQ
MQTT Transport implementation fully supports an <a shape="rect" href="security.html">ActiveMQ
security</a> mechanism. Also, the authorization policies will be applied when you try
to access (read/write) certain destinations.</p><h3 id="MQTT-EnablingMQTToverNIO">Enabling
MQTT over NIO</h3><p>For better scalability (and performance) you might want to
run the MQTT protocol over NIO transport. To do that just use <code>mqtt+nio</code>
transport prefix instead of <code>matt</code>. For example, add the following
transport configuration in your XML file</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
+</div></div><h3 id="MQTT-Security">Security</h3><p>The ActiveMQ
MQTT Transport implementation fully supports an <a shape="rect" href="security.html">ActiveMQ
security</a> mechanism. Also, the authorization policies will be applied when you try
to access (read/write) certain destinations.</p><h3 id="MQTT-EnablingMQTToverNIO">Enabling
MQTT over NIO</h3><p>For better scalability (and performance) you might want to
run the MQTT protocol over NIO transport. To do that just use <code>mqtt+nio</code>
transport prefix instead of <code>mqtt</code>. For example, add the following
transport configuration in your XML file</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
 <pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">  
  &lt;transportConnector name="mqtt+nio" uri="mqtt+nio://localhost:1883"/&gt;
 </pre>
 </div></div><p>This transport use <a shape="rect" class="external-link"
href="http://activemq.apache.org/configuring-transports.html#ConfiguringTransports-TheNIOTransport">NIO
transport</a> underneath and will generally use much less threads than standard connector.</p><h3
id="MQTT-EnablingMQTToverNIO+SSL">Enabling MQTT over NIO + SSL</h3><p>The MQTT
transport also supports using NIO and SSL. To enable this option, use the mqtt+nio+ssl protocol
- e.g.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">



Mime
View raw message