Versions Compared

Key

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

...

The following procedure describes how to run the RSS Binding example in ServiceMix and provides details regarding what the RSS Binding does. For information on the business use case, please refer to: Use Case for HTTP Binding.

The HTTP RSS Binding example illustrates:

  • use of declarative programming
  • how to perform an HTTP RSS binding in ServiceMix

The source code for the HTTP RSS Binding example is located in the ServiceMix installation directory under the examples\httprss-binding directory in the servicemix.xml file. It is recommended that you refer to the source code while reading this document.

This example shows how to use an HTTP binding to handle a simple HTTP post. One component acts as the HTTP server, which listens on http://localhost:8912Image Removed, while another component invokes a remote service, implemented as an URLEndpoint. A simple HTTP client is provided so that a simple post can be sent to the servermonitor RSS feed for changes. The main component polls the RSS periodically and when an update is found the RSS item is send to a trace component for logging.

Running the HTTP Binding Example

...