Configure MQTT over Websockets [ActiveMQ}

0

How does one configure ActiveMQ to use MQTT over Websockets ? I was unable to find proper documentation on how to set up the configuration file for this. However, I tried adding the following lines to the configuration file

<transportConnectors>
<transportConnector name="mqtt+wss" uri="wss://myURLhere:61620"/>
</transportConnectors>

This produced the following error

The specified XML configuration data is invalid: cvc-attribute.3: The value 'mqtt_ws' of attribute 'name' on element 'transportConnector' is not valid with respect to its type, 'protocol'. and cvc-enumeration-valid: Value 'mqtt_ws' is not facet-valid with respect to enumeration '[
openwire ]'. It must be a value from the enumeration.

Any help to resolve the issue would be appreciated. Thanks !

Edited by: abhai on Feb 23, 2021 10:47 PM

Edited by: abhai on Feb 23, 2021 10:47 PM

Edited by: abhai on Feb 23, 2021 10:48 PM

abhai
已提問 3 年前檢視次數 774 次
1 個回答
0

Hi abhai,
The websocket endpoint is already available to you. You can find details on our supported protocols here:
https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker.html
It supports both STOMP over websocket as well as MQTT over websocket.

Please note that we only support SSL endpoints so make sure you use that setting on the client side.

Thanks,
Mithun

AWS
已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南