If you set your QoS=0 then it should be a normal topic sub and not a durable. The documentation is on http://activemq.apache.org/mqtt.html
"ActiveMQ is a JMS broker in its core, so there needs to be some mapping between MQTT subscriptions and JMS semantics. Subscriptions with QoS=0 (At Most Once) are directly mapped to plain JMS non-persistent topics. For reliable messaging, QoS=1 and QoS=2, by default subscriptions are transformed to JMS durable topic subscribers. This behaviour is desired in most scenarios. " On Mon, Feb 20, 2017 at 9:46 AM, fabio72 <[email protected]> wrote: > Hi, > we have noticed that all mqtt messages and topics are durable and this > cause > an higher usage of memory (and also a slower performance index). > Is it possible to choose whether to use durable messages (like jms > messages) > or not? > In our case we need durable messages only for retained messages > > tks > > > > -- > View this message in context: http://activemq.2283324.n4. > nabble.com/MQTT-Durable-Messages-and-Topic-tp4722238.html > Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. >
