Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

  1. The rss component, which is implemented by RssPollingComponent class, uses customEditorConfigurer bean to parse the Date variable lastPolledDate into the specified format (yyyy/MMM/dd). lastPolledDate will be used to determine the new items added on the RSS feed.
  2. The rss component periodically polls RSS feeds defined on its urlStrings property for changes. In this case rss component monitors the following RSS feeds: http://rss.cnn.com/rss/cnn_topstories.rssImage Removed and http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xmlImage Removed.
  3. When an update is found, the rss component creates a normalized message that contains the new items. It then sends the normalized message to the NMR. The NMR routes the message to the trace component.
  4. The trace component displays the RSS news items on the console.

...

Output from running {{\[servicemix_install_dir\]\bin\servicemix servicemix.xml}} looks like the following:

Code Block
  
<item>
<title>Bush supporters' cars allegedly defaced by war veteran</title>
<link>http://www.cnn.com/rssclick/2005/US/12/16/bush.vandalism.ap/index.html?sec
tion=cnn_topstories</link>
<description>Read full story for latest details.</description>
<pubDate>Sat, 17 Dec 2005 00:52:01 GMT</pubDate>
<guid isPermaLink="false">http://www.cnn.com/rssclick/2005/US/12/16/bush.vandali
sm.ap/index.html?section=cnn_topstories</guid>
</item>
<item>
<title>Stern says goodbye to terrestrial radio</title>
<link>http://www.cnn.com/rssclick/2005/SHOWBIZ/12/16/stern.last.day.ap/index.htm
l?section=cnn_topstories</link>
<description>Read full story for latest details.</description>
<pubDate>Sat, 17 Dec 2005 02:13:07 GMT</pubDate>
<guid isPermaLink="false">http://www.cnn.com/rssclick/2005/SHOWBIZ/12/16/stern.l
ast.day.ap/index.html?section=cnn_topstories</guid>
</item>

...

For more information on the following topics please see:

http://docs.codehaus.org/x/3XMImage RemovedWe support working with RSS and Atom via the Rome library. We support both the polling of existing RSS feeds to generate JBI messages (the example documented above) and the generation of RSS feeds from JBI messages. To see an example of how to generate RSS feeds from JBI messages go here.

For a brief explanation of the XML tags in the servicemi.xml file, please see:

...