Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.10.0
-
None
-
Patch Available
-
Unknown
Description
Playing with dynamic routes, I found out that when TwitterEndpoints are stopped or shutdown, so should the Twitter instance too, and/or TwitterStream.
The Twitter object (from Twitter4J) keeps connected with Twitter until a session timeout happens, which is controlled by Twitter's server-side in this case.
This patch adds a call to Twitter.shutdown on all three endpoints, and in case of the TwitterEndpointEvent, it will call TwitterStream.shutdown() if it's just a stop of the endpoint (not complete shutdown).
Also I added a call to restart the streaming.
Attachments
Attachments
Issue Links
- breaks
-
CAMEL-5773 camel-twitter streaming consumer broken
- Resolved