Skip to content

Commit 3c1b547

Browse files
committed
Fix MQTT clientFactory bean definition in Docs
**Cherry-pick to 5.0.x and 4.3.x**
1 parent fc47952 commit 3c1b547

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/reference/asciidoc/mqtt.adoc

+6-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ A minimal configuration might be:
2323
----
2424
<bean id="clientFactory"
2525
class="org.springframework.integration.mqtt.core.DefaultMqttPahoClientFactory">
26-
<bean class="org.eclipse.paho.client.mqttv3.MqttConnectOptions">
27-
<property name="userName" value="${mqtt.username}"/>
28-
<property name="password" value="${mqtt.password}"/>
29-
</bean>
26+
<property name="connectionOptions">
27+
<bean class="org.eclipse.paho.client.mqttv3.MqttConnectOptions">
28+
<property name="userName" value="${mqtt.username}"/>
29+
<property name="password" value="${mqtt.password}"/>
30+
</bean>
31+
</property>
3032
</bean>
3133
3234
<int-mqtt:message-driven-channel-adapter id="mqttInbound"

0 commit comments

Comments
 (0)