You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2023/04/28 15:47:00 UTC

[jira] [Commented] (ARTEMIS-4264) MQTT v5 request-response with correlation ID

    [ https://issues.apache.org/jira/browse/ARTEMIS-4264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17717731#comment-17717731 ] 

Justin Bertram commented on ARTEMIS-4264:
-----------------------------------------

MQTT 5, as such, is fully supported. 

However, as of yet there's no plumbing to map JMS correlationID and replyTo to the response-topic and correlation-data (respectively) of an MQTT {{PUBLISH}} packet. To be clear, this kind of interoperability isn't part of the MQTT 5 specification.

There is certainly much overlap between JMS and MQTT, but there's also some potentially problematic nuances. For example, in MQTT the correlation-data is just a {{byte[]}}, but in JMS it can be set as a {{String}} or as a {{byte[]}}.

I'll take a look at how this is handled for other protocols and even within JMS itself (i.e. setting correlationID as a {{byte[]}} and getting it as a {{String}}).

> MQTT v5 request-response with correlation ID
> --------------------------------------------
>
>                 Key: ARTEMIS-4264
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4264
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Daniel Martin
>            Priority: Major
>
> When sending messages from a JMS producer (ActiveMQ) to a MQTT consumer (HiveMQ), using `setJMSReplyTo()` and `setJMSCorrelationID()` on the sending side and `getResponseTopic()` and `getCorrelationData()` on the receiving side, this information is not received by MQTT.
> It seem to me that both protocols are pretty translatable into one another, having pretty much the same concepts:
>  * [https://activemq.apache.org/how-should-i-implement-request-response-with-jms]
>  * [https://hivemq.com/blog/mqtt5-essentials-part9-request-response-pattern|https://www.hivemq.com/blog/mqtt5-essentials-part9-request-response-pattern]
> I'd additionally ask: is MQTT version 5 truly supported? To what extent?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)