简体   繁体   中英

ActiveMQ configuration

在此处输入图片说明

I'm new to ActiveMQ and I'd like to know how and where to add this line of code to enable MQTT on my broker. I'm running broker on Mac.

Kindly help me with this configuration.

By default, MQTT protocol is supported for ActiveMQ when it starts if you download from Apache ActiveMQ . Apache has configured the broker well in /conf/activemq.xml so that you can run it directly. Meanwhile, openwire , amqp , stomp and ws are enabled for ActiveMQ as well.

<transportConnectors>
    <!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
    <transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
    <transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
    <transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
    <transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
    <transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
</transportConnectors>

After you have create a new broker using tool ARTEMIS_PATH/bin/artemis[.cmd in Windows] named for example TestBroker , there will be broker's work path in ARTEMIS_PATH/bin/TestBroker .

The file that configure connectors is broker.xml and it will be located in ARTEMIS_PATH/bin/TestBroker/etc/broker.xml

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM