MQTT paho java client

31 views
Skip to first unread message

Gadi Eichhorn

unread,
Nov 24, 2017, 5:15:12 AM11/24/17
to MQTT
Hi all,

anyone using paho java client with persistence (MqttDefaultFilePersistence) ?
I face and issue were my network is down and messages are persisted to disk but if my app is then restarted all messages are gone. 

I tried with clean session = false. (default?). still, when app restarts the messages are removed. Is this because paho cannot reconnect to broker after restart as the network is still down?

any advise how to persist messages after restart?

Thanks.
Reply all
Reply to author
Forward
0 new messages