diff --git a/docs/src/reference/docbook/xmpp.xml b/docs/src/reference/docbook/xmpp.xml
index 60255f29c7..97c0318432 100644
--- a/docs/src/reference/docbook/xmpp.xml
+++ b/docs/src/reference/docbook/xmpp.xml
@@ -102,17 +102,17 @@ xsi:schemaLocation="http://www.springframework.org/schema/integration/xmpp
xmpp-connection="testConnection"/>]]>
The adapter expects as its input - at a minimum - a payload of type java.lang.String, and a header value
- for XmppHeaders.CHAT_TO_USER that specifies to which user the Message should be sent to. To
+ for XmppHeaders.CHAT_TO that specifies to which user the Message should be sent to. To
create a message you might use the following Java code:
xmppOutboundMsg = MessageBuilder.withPayload("Hello, XMPP!" )
- .setHeader(XmppHeaders.CHAT_TO_USER, "userhandle")
+ .setHeader(XmppHeaders.CHAT_TO, "userhandle")
.build();]]>
Another mechanism of setting such header is by using the XMPP enricher support. Here is an example using the enricher.
-
+
]]>