diff --git a/src/reference/docbook/twitter.xml b/src/reference/docbook/twitter.xml
index c78a2e7cc9..f99e602207 100644
--- a/src/reference/docbook/twitter.xml
+++ b/src/reference/docbook/twitter.xml
@@ -17,11 +17,11 @@
subscribers who are known as followers.
-
- Previous versions of Spring Integration were dependent upon the Twitter4J API,
- but with the release of Spring Social 1.0 GA,
- Spring Integration, as of version 2.1, now builds directly upon Spring Social's Twitter support, instead of Twitter4J.
-
+
+ Versions of Spring Integration prior to 2.1 were dependent upon the Twitter4J API,
+ but with the release of Spring Social 1.0 GA,
+ Spring Integration, as of version 2.1, now builds directly upon Spring Social's Twitter support, instead of Twitter4J.
+
@@ -39,9 +39,9 @@ xsi:schemaLocation="http://www.springframework.org/schema/integration/twitter
The Twitter API allows for both authenticated and anonymous operations. For authenticated operations Twitter uses OAuth
- an authentication protocol that allows users to approve an application to act on their behalf without
- sharing their password. More information can be found at http://oauth.net/ or
- in this article http://hueniverse.com/oauth/ from Hueniverse.
- Please also see OAuth FAQ for more information about OAuth and Twitter.
+ sharing their password. More information can be found at http://oauth.net or
+ in this article http://hueniverse.com/oauth from Hueniverse.
+ Please also see OAuth FAQ for more information about OAuth and Twitter.
In order to use OAuth authentication/authorization with Twitter you must create a new Application on the Twitter Developers site.
@@ -50,7 +50,7 @@ xsi:schemaLocation="http://www.springframework.org/schema/integration/twitter
- Go to http://dev.twitter.com/
+ Go to http://dev.twitter.comClick on the Register an app link and fill out all required fields on the form provided;
@@ -121,21 +121,28 @@ twitter.oauth.accessTokenSecret=AbRxUAvyNCtqQtxFK8w5ZMtMj20KFhB6o]]>Twitter Inbound Adapters
Twitter inbound adapters allow you to receive Twitter Messages. There are several types of
- twitter messages, or tweets
+ twitter messages, or tweetsSpring Integration version 2.0 and above provides support for receiving tweets as Timeline Updates,
Direct Messages, Mention Messages as well as Search Results.
-
- Every Inbound Twitter Channel Adapter is a Polling Consumer which means you have to provide a poller
- configuration. However, there is one important thing you must understand about Twitter since its inner-workings are slightly
- different than other polling consumers. Twitter defines a concept of Rate Limiting. You can read more about
- it here: Rate Limiting. In a nutshell, Rate Limiting
- is the way Twitter manages how often an application can poll for updates. You should consider this when setting your
- poller intervals, but we are also doing a few things to limit excessively aggressive polling within our adapters.
-
-
+
+
+ Every Inbound Twitter Channel Adapter is a Polling Consumer which means you have to provide a poller
+ configuration.
+ Twitter defines a concept of Rate Limiting. You can read more
+ about it here: Rate Limiting. In a nutshell,
+ Rate Limiting is a mechanism that Twitter uses to manage how often an application can poll for updates. You should consider this when
+ setting your poller intervals so that the adapter polls in compliance with the Twitter policies.
+
+
+ With Spring Integration prior to version 3.0, a hard-coded limit within the adapters was used to ensure
+ the polling interval could not be less than 15 seconds. This is no longer the case and the poller configuration is
+ applied directly.
+
+
+
Another issue that we need to worry about is handling duplicate Tweets. The same adapter (e.g., Search or Timeline Update)
while polling on Twitter may receive the same values more than once. For example if you keep searching on Twitter with the same search
criteria you'll end up with the same set of tweets unless some other new tweet that matches your search criteria was posted