Gary Tully <gary.tully@...> writes:
> Seems like you want cleanSession=true in your mqtt client.
> by default mqtt clients are durable subscribers so unless they ack, all
> messages will be retained by the broker.

I am using CleanSession = false to allow for offline queuing.
Unless there is another way I really need this feature.

> On 5 December 2012 00:27, Christian Webel <c_webel@...> wrote:
> > ..if I then call removeConsumers so
> > that the durable subscriptions get deactivated results to strange reconnect
> > behaviour: everytime I reconnect after a connection loss, all the messages
> > are pushed to my device and never deleted from the topic. I always receive
> > all messages that were sent during my offline time.

Even without any custom plug-in running I am seeing this behavior as well.
ActiveMQ 5.7, MQTT protocol with durable subscription, Android 4.1 device with
latest Eclipse Paho library (jar from their site). Messages sent to the device
while offline are queued as expected, but seem never to be ACKed. All offline
messages ever sent to the device appear all to be sent to the device when it
comes online again. Over and over again.

Reply via email to