camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-11691) Should resubscribe when reconnect MQTT
Date Sun, 03 Sep 2017 08:20:00 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-11691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen updated CAMEL-11691:
--------------------------------
    Issue Type: Improvement  (was: Bug)

> Should resubscribe when reconnect MQTT
> --------------------------------------
>
>                 Key: CAMEL-11691
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11691
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-paho
>    Affects Versions: 2.19.2
>            Reporter: abccbaandy
>
> There is a feature in MqttConnectOptions called setAutomaticReconnect
> https://www.eclipse.org/paho/files/javadoc/org/eclipse/paho/client/mqttv3/MqttConnectOptions.html#setAutomaticReconnect-boolean-
> But, when it reconnect, it doesn't resubscribe the topics. Paho provide a callback :
MqttCallbackExtended, it got called when connect completed. So we can subscribe the topics
again in that callback.
> https://www.eclipse.org/paho/files/javadoc/org/eclipse/paho/client/mqttv3/MqttCallbackExtended.html
> I check camel-paho source code, seems it use MqttCallback instead MqttCallbackExtended.
> Can anyone implement this feature?
> Thanks



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message