...
Messages flow through the components as follows:
- 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:8912
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.rssand http://localhost:8912
receives the message.
- httpReceiver sends the message to stockQuote as specified in its destinationService property, via NMR.
- stockQuote sends the message into another service, soapEndpoint for processing.
- soapEndpoint sends the response to stockQuote.
- stockQuote sends the response to httpReceiver via NMR.
- httpReceiver sends the response to http://localhost:8912
.
- HttpClient reads the response.
- The response is printed on the console.
- newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml
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:
...