Twitter Websocket ExampleAvailable as of Camel 2.10 This example is located in the Camel distribution at examples/camel-example-twitter-websocket. The example is demonstrating how to poll a constant feed of twitter searches and publish results in real time using web socket to a web page. from("twitter://search?...") .to("websocket:camel-tweet?sendToAll=true") This example is already configured using a testing purpose twitter account named 'cameltweet'. And therefore the example is ready to run out of the box. This account is only for testing purpose, and should not be used in your custom applications. For that you need to setup and use your own twitter account.
You will need to compile this example first: mvn compile To run the example type mvn exec:java Then open a browser to see live twitter updates in the webpage
http://localhost:9090/index.html
To stop the example hit ctrl + c When the application runs, the webpage should automatic update with new tweets. A screenshot below illustrates what you would see: See also |

