You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In what version(s) of Spring Integration are you seeing this issue?
6.3.3
Describe the bug
When integrating MQTT using the Shared MQTT Client Support method, the MqttMessageDeliveredEvent event will not be published.
Because the MQTT client's callback is no longer MqttPahoMessageHandler, the MqttMessageDeliveredEvent event is no longer triggered for publication.
The text was updated successfully, but these errors were encountered:
Thank you for the report!
Yeah, I see the pain and how it may cause problems.
Even if I accept it, I'll still consider it to be fixed only for the current 6.4 version.
Apparently the fix is a bit involved and we know that there is a workaround like relying on the internal client for the MqttPahoMessageHandler.
…t instance
Fixes: spring-projects#9428
Issue link: spring-projects#9428
When `ClientManager` is used for MQTT channel adapters, a `MqttMessageDeliveredEvent`
is not emitted since callback for the `ClientManager` is not aware about `deliveryComplete`
* Use a `MqttActionListener` abstraction for the `publish` operation instead of a `deliveryComplete`
from a common callback
* Make some other refactoring into the `MqttPahoMessageHandler` and `Mqttv5PahoMessageHandler`
extracting a common logic into their `AbstractMqttMessageHandler` superclass
* Introduce an `MqttMessageNotDeliveredEvent` to be emitted from the `MqttActionListener.onFailure()` callback
* Adapt mocks in the `MqttAdapterTests` for a new code flow
* Add delivery events verification into the `ClientManagerBackToBackTests`
In what version(s) of Spring Integration are you seeing this issue?
6.3.3
Describe the bug
When integrating MQTT using the Shared MQTT Client Support method, the MqttMessageDeliveredEvent event will not be published.
Because the MQTT client's callback is no longer MqttPahoMessageHandler, the MqttMessageDeliveredEvent event is no longer triggered for publication.
The text was updated successfully, but these errors were encountered: