Configuring the Rssforeal Demo Application

How to:

This section describes how to configure the Rssforeal demo application using the iWay Service Manager Administration Console.


Top of page

x
Procedure: How to Create the rss-categories Portlet

To create the rss-categories portlet:

  1. Click Tools in the top pane of the iWay Service Manager Administration Console.

    The iWay Service Manager Tools pane opens.

  2. In the left pane, select Resources under the Real-time section.

    The Resources pane opens and displays the Gauges tab by default, as shown in the following image.

  3. Click the Charts tab.

    The Charts tab opens and displays the available charts that can be configured, as shown in the following image.

  4. Click the Real Time Line chart.

    The Real Time Line Chart configuration pane opens, as shown in the following image. A visual representation of the selected chart (for example, Real Time Line) is displayed on the left. There are five configuration tabs (Sources, Data, Labels, Visuals, and Extras) located on the right. By default, the Sources tab is selected.

  5. In the Interval field, enter a value of 5, which indicates that the chart will update every five seconds.

  6. Click Update.
  7. Click the Data tab.

  8. Provide the configuration properties, as defined in the following table.

    Parameter

    Value

    Type

    Historical

    Events

    _ekeys(rss.category)

    Aggregation

    COUNT

    History

    43200000 (12 hours)

    Data Range

    10 (Default)

  9. Click Update.
  10. Click the Labels tab.

  11. Type RSS for Real in the Title field and clear all the remaining labels.
  12. Click Update.
  13. Click the Extras tab.

  14. Optionally, you can deselect the Show Legend option.
  15. Click Save.

    The Save as Portlet dialog box opens.

  16. In the Name field, type rss-categories.
  17. From the Type drop-down list, select Windowed, which indicates that a pop-up window will be used to display this portlet.
  18. Click OK.

    You are returned to the main Resources pane where the Portlets tab is now selected.

    The new Real Time Line chart (rss-categories) is now added to the table. You are now ready to create the Obama portlet.



x
Procedure: How to Create the Obama Portlet

An interesting aspect of the Rssforeal demo application is that the topic of interest is not specified anywhere. In fact, the following iFL expression is used as the search topic and the default portlet name:

_sreg(rssforeal.topic,obama)

To change this value edit the rssforeal register set and change the value in the Description column for the following register:

f[rssforeal.topic].t[default]

For more information on how to configure register sets, see Configuring Register Sets.

Perform the following steps to create the Obama portlet, which counts the number of times obama appears in the feed:

  1. Click Tools in the top pane of the iWay Service Manager Administration Console.

    The iWay Service Manager Tools pane opens.

  2. In the left pane, select Resources under the Real-time section.

    The Resources pane opens and displays the Gauges tab by default, as shown in the following image.

  3. Click the Linear gauge style.

    The Linear Gauges opens and displays the available linear gauge styles that can be configured, as shown in the following image.

  4. Click the Horizontal Linear Gauge style.

    The Horizontal Linear Gauge configuration pane opens, as shown in the following image. A visual representation of the selected gauge (for example, HLinearGauge.4) is displayed on the left. There are four configuration tabs (Sources, Data, Visuals, and Sizing) located on the right. By default, the Sources tab is selected.

  5. In the Interval field, enter a value of 5, which indicates that the chart will update every five seconds.

  6. Click Update.
  7. Click the Data tab.

  8. Provide the configuration properties, as defined in the following table.

    Parameter

    Value

    Lower Limit

    0

    Upper Limit

    100

    Value

    _count(_ekeys(_sreg(rssforeal.topic,obama)))

  9. Click Update, and then click Save.

    The Save as Portlet dialog box opens.

  10. In the Name field, type obama.
  11. From the Type drop-down list, select Windowed, which indicates that a pop-up window will be used to display this portlet.
  12. Click OK.

    You are returned to the main Resources pane where the Portlets tab is now selected.

    The new Horizontal Linear gauge (obama) is now added to the table. Now that both portlets which are used by the Rssforeal demo application are configured, you can start the application.

  13. In the left pane, select Applications under the Real-time section.

    The Applications pane opens, as shown in the following image.

  14. Click rssforeal.

    The Rssforeal demo application opens in a new pop-up window.

  15. Click the Dashboard tab.

    The Dashboard tab displays the two portlets (rss-categories and obama), which were configured for the Rssforeal demo application to render data.

    You can read new data by clicking Read RSS, which will read the RSS news feeds from Yahoo. Click Reload to refresh the portlets to reflect the updated information.


iWay Software