You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Deomisr <pa...@edf.fr> on 2019/02/14 13:48:52 UTC

Is possible to Artemis to act as a client/publisher and consumer as the same time

Hi,

is it possible to Artemis to act as a consumer and forward the message to
another broker.
for example :

Step 1 : client1 publish a mqtt message to artemis
step 2: Artemis consume the message
Step 3: Atemis send the message to another broker via mqtt.

Client1(step1)---->Broker Artemis(step 2)----->another broker (step 3).

Best regards
Deomis



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Is possible to Artemis to act as a client/publisher and consumer as the same time

Posted by Deomisr <pa...@edf.fr>.
ok Thanks a lot for this advise.
i will try the camel route



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Is possible to Artemis to act as a client/publisher and consumer as the same time

Posted by Justin Bertram <jb...@apache.org>.
Artemis itself can not send messages via MQTT to another broker. It has a
"core" bridge which can forward messages to other Artemis instances via the
"core" protocol. There is also a JMS bridge that can use arbitrary JMS
implementations to consume and send messages between JMS providers.
However, there is no MQTT bridge.

My recommendation would be to use a Camel route as it supports MQTT [1].
Camel routes can be deployed directly on the broker. We ship an example
demonstrating how to do this [2].


Justin

[1] http://camel.apache.org/mqtt.html
[2]
https://github.com/apache/activemq-artemis/tree/master/examples/features/standard/camel

On Thu, Feb 14, 2019 at 2:49 PM Deomisr <pa...@edf.fr> wrote:

> Hi,
>
> is it possible to Artemis to act as a consumer and forward the message to
> another broker.
> for example :
>
> Step 1 : client1 publish a mqtt message to artemis
> step 2: Artemis consume the message
> Step 3: Atemis send the message to another broker via mqtt.
>
> Client1(step1)---->Broker Artemis(step 2)----->another broker (step 3).
>
> Best regards
> Deomis
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>