publish a message from amqp to mqtt with retain = true

85 views
Skip to first unread message

Simon Eggler

unread,
Apr 25, 2018, 8:38:27 AM4/25/18
to rabbitmq-users
i would like to publish a message via amqp (client api java) to an mqtt topic. i would like to set the retained flag to true. how can this be achieved? 


thank you

Michael Klishin

unread,
Apr 25, 2018, 8:51:32 AM4/25/18
to rabbitm...@googlegroups.com
AMQP 0-9-1 clients are not aware of MQTT-specific flags. The only way to do something like that
would be for the MQTT plugin to look for certain headers for clues. I am not in favor of such features
as they pile up and result in combinations that are confusing to the user and no one really can tell how
things should work in combination — they never meant to.

Please use an MQTT client instead or make your system not depend on the retain behavior when interoperating with other protocols.

On Wed, Apr 25, 2018 at 2:38 PM, Simon Eggler <miste...@gmail.com> wrote:
i would like to publish a message via amqp (client api java) to an mqtt topic. i would like to set the retained flag to true. how can this be achieved? 


thank you

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages