diff --git a/src/docbkx/xmpp.xml b/src/docbkx/xmpp.xml
index b1163b3a84..017c128ea8 100644
--- a/src/docbkx/xmpp.xml
+++ b/src/docbkx/xmpp.xml
@@ -112,6 +112,7 @@ http://www.springframework.org/schema/context/spring-context-3.0.xsd
host="host"
port="port"
resource="theNameOfTheResource"
+ subscription-mode="accept_all"
/>
]]>
@@ -208,7 +209,9 @@ http://www.springframework.org/schema/context/spring-context-3.0.xsd
]]> ]]>
+
+
]]>service-activator
component. Here's the declaration of theservice-activator.
-
-
]]>
-
-
-
XMPP Presence
+
+
+
+ XMPP also supports broadcasting state. You can use this capability to
+ let people who have you on their roster see your state changes. This happens all the time with your IM clients - you
+ change your away status, and then set an away message, and everybody who has you on their roster sees your icon or username change to reflect this new state, and
+ additionally might see your new "away" message.
+
+
+ If you would like to receive notification, or notify others, of state changes, you can use Spring Integration's "presence" adapters.
+
+
+ The most important data for these adapters resides in the headers. The header keys are enumerated on
+ the org.springframework.integration.xmpp.XmppHeaders class. The header keys specific to these "presence" adapters start with the token "PRESENCE_".
+
+
+
+
+ Header Values
+
+
+
+
+
+
+
+
+ Header Name
+ What It Describes
+
+
+
+
+
+
+ XmppHeaders.TYPE
+ The value of the
+ the
+
+ org.jivesoftware.smack.packet.Message.Type
+
+ enum that describes the inbound message. Possible values are:
+ normal,
+ chat,
+ groupchat,
+ headline,
+ error.
+
+
+
+
+ XmppHeaders.CHAT
+ A reference to the
+ org.jivesoftware.smack.Chat
+ class which represents the
+ threaded conversation containing the message.
+
+
+
+
+
+
+
Inbound Presence Adapter
- TBD
+
+ The first adapter supports receiving messages whenever an agent on your roster has updated its
+ state. Most of the important data comes in through the headers.
+
+
Outbound Presence Adapter