There are 2 files you need to change: wildfly-10.1.0.Final/modules/system/layers/base/org/apache/activemq/artemis/main/module.xml wildfly-10.1.0.Final/modules/system/layers/base/org/apache/activemq/artemis/protocol/mqtt/main/module.xml
You also need to drop the following jars into the mqtt/main directory: artemis-mqtt-protocol-1.1.0.wildfly-017.jar netty-codec-mqtt-5.0.0.Alpha2.jar This worked for me: ./bin/standalone.sh -c standalone-full.xml | grep "MQTT" 13:49:24,804 INFO [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 64) AMQ221043: Protocol module found: [artemis-mqtt-protocol]. Adding protocol support for: MQTT I've attached my mqtt module.xml for reference. Cheers On Mon, Jul 31, 2017 at 1:20 PM, aragoubi <aymen....@gmail.com> wrote: > I want to use mqtt with Artemis activemq. I tried adding a module for mqtt > exactely like in this post > https://stackoverflow.com/questions/39427558/how-to- > work-with-mqtt-in-wildfly. > My problem is the same, I can't see the *Adding protocol support for: MQTT* > when I start wildfly. > I am starting wildfly as standalone-full. > > > > -- > View this message in context: http://activemq.2283324.n4. > nabble.com/Add-mqtt-protocol-to-artemis-Wildfly-tp4729059.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ JBoss, Home of Professional Open Source. ~ Copyright 2010, Red Hat, Inc., and individual contributors ~ as indicated by the @author tags. See the copyright.txt file in the ~ distribution for a full listing of individual contributors. ~ ~ This is free software; you can redistribute it and/or modify it ~ under the terms of the GNU Lesser General Public License as ~ published by the Free Software Foundation; either version 2.1 of ~ the License, or (at your option) any later version. ~ ~ This software is distributed in the hope that it will be useful, ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ~ Lesser General Public License for more details. ~ ~ You should have received a copy of the GNU Lesser General Public ~ License along with this software; if not, write to the Free ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. --> <module xmlns="urn:jboss:module:1.3" name="org.apache.activemq.artemis.protocol.mqtt"> <resources> <resource-root path="artemis-mqtt-protocol-1.1.0.wildfly-017.jar"/> <resource-root path="netty-codec-mqtt-5.0.0.Alpha2.jar"/> </resources> <dependencies> <module name="org.apache.activemq.artemis"/> <module name="org.jboss.logging"/> </dependencies> </module>