Versions Compared

Key

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

...


Messages flow through the components as follows:

  1. HttpClient, a Java stand-alone program, connects to rss component implemented by RssPollingComponent class polls RSS feeds defined on its urlStrings property. In this case rss component monitors http://localhost:8912Image Removed through the URLConnection class. HttpClient sends the file request.xml to this port.httpReceiver, an HTTP server, being a listener on rss.cnn.com/rss/cnn_topstories.rssImage Added and http://localhost:8912Image Removed receives the message.
  2. httpReceiver sends the message to stockQuote as specified in its destinationService property, via NMR.
  3. stockQuote sends the message into another service, soapEndpoint for processing.
  4. soapEndpoint sends the response to stockQuote.
  5. stockQuote sends the response to httpReceiver via NMR.
  6. httpReceiver sends the response to http://localhost:8912Image Removed.
  7. HttpClient reads the response.
  8. The response is printed on the console.
  9. newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xmlImage Added

Typical output looks like the following:

...

Component or Bean ID

Description

rss

This component polls RSS feeds for changes and is implemented by RssPollingComponent class. The property urlStrings defines the RSS feeds to be monitored. When one of the RSS feeds being monitored is updated, this component will convert the content of the RSS feed into a normalized message and send it to a trace component via Normalized Message Router (NMR).

StreamWriterComponent

This component accepts a normalized message and display its content to the console.

Useful Code Hints

This section describes the start-up sequence and how the ServiceMix container interacts with the HTTP Binding application. The Java class files are located in the servicemix-2.0.2.jar file in the ServiceMix installation directory. To review the Java source code, unjar and decompile the .class files or download the source code.

Viewing the Java source code is recommended for understanding the information in this section.

...

.

...

Some of the ActivationSpec methods are:

...

Related Documentation

For more information on the following topics please see:

...