We support working with RSS and Atom via the Romelibrary. We support both the polling of existing RSS feeds to generate JBI messages and the generation of RSS feeds from JBI messages.

Polling RSS/Atom feeds

To see this component in action see the Example in the binary distribution.

You can configure the RSS component as follows in your servicemix.xml

{snippet:id=rss|lang=xml|url=servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/examples/rss-binding/servicemix.xml}

 

Generating RSS/Atom feeds

This component is used to consume inbound JBI messages and write them to an RSS/Atom feed. You can then use expressions to extract the title and entry content for the items.

The following example shows using XPath expression

{snippet:id=rss|lang=xml|url=servicemix/smx3/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/rss/example.xml}

 

  • No labels

4 Comments