There is a feature in MqttConnectOptions called setAutomaticReconnect
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.
I check camel-paho source code, seems it use MqttCallback instead MqttCallbackExtended.
Can anyone implement this feature?