Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This example is located in the Camel distribution at examples/camel-example-twitter-websocket.

Tip

There is a Twitter Websocket Blueprint Example for OSGi Blueprint users.

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.
As usual the code in Camel is very simple. All it takes is roughly

...

When the application runs, the webpage should automatic update with new tweets. A screenshot below illustrates what you would see:

See also