You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by aragoubi <ay...@gmail.com> on 2017/07/31 12:20:02 UTC

Add mqtt protocol to artemis Wildfly

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.

Re: Add mqtt protocol to artemis Wildfly

Posted by Justin Bertram <jb...@redhat.com>.
For clarity's sake I recommend you start a new thread with your interceptor
question.


Justin

On Mon, Jul 31, 2017 at 8:06 AM, aragoubi <ay...@gmail.com> wrote:

> Thank you for your response, yes now it works fine, it was a jars problem.
> I begin with artemis, and I would like to know how could I configure my
> broker, for example if I want to add an interceptor in order to intercept
> connections to broker. Do you have any idea on how to achieve that ?
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/Add-mqtt-protocol-to-artemis-Wildfly-tp4729059p4729064.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Re: Add mqtt protocol to artemis Wildfly

Posted by aragoubi <ay...@gmail.com>.
Thank you for your response, yes now it works fine, it was a jars problem.
I begin with artemis, and I would like to know how could I configure my
broker, for example if I want to add an interceptor in order to intercept
connections to broker. Do you have any idea on how to achieve that ?



--
View this message in context: http://activemq.2283324.n4.nabble.com/Add-mqtt-protocol-to-artemis-Wildfly-tp4729059p4729064.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Add mqtt protocol to artemis Wildfly

Posted by Clebert Suconic <cl...@gmail.com>.
I would recommend you using artemis with mqtt on 2.2.0.. or AMQ. so
that is use artemis remotely from wildfly, which would still work.


2.2.0 currently can't be embedded on wildfly (there are some changes
to be done on artemis messaging layer).


Like the recent bug fix on mqtt.. I don't think it's been fixed on 1.5.x;

On Mon, Jul 31, 2017 at 8:49 AM, Martyn Taylor <mt...@redhat.com> wrote:
> 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 <ay...@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.
>
>



-- 
Clebert Suconic

Re: Add mqtt protocol to artemis Wildfly

Posted by Martyn Taylor <mt...@redhat.com>.
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 <ay...@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.
>