Skip to content

Add server url property to MqttIntegrationEvent #3340

@ikarsokolov

Description

@ikarsokolov

Expected Behavior
MqttIntegrationEvent should have server property or other means to find what MQTT server caused it.

Current Behavior
MqttIntegrationEvent does not have server property.

Context
I have multiple inbound MQTT adapters connected to different servers. Right now it is impossible to find what server caused application event. For example MqttConnectionFailedEvent may not have any mentions of failed server depending on type of the underlying exception.

AbstractMqttMessageDrivenChannelAdapter.getUrl() is protected. Also I am not sure if it is set correctly if urls are configured through MqttConnectOptions. At the very least AbstractMqttMessageDrivenChannelAdapter should log server url on errors.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions