Instructions for running the Atom feed application sample

This topic describes the steps required to run the Atom feed application sample.

About this task

To run the Atom feed application sample, perform the following actions:

Procedure

  1. Download the AtomSample.zip file and extract the contents of the compressed file to a location of your choice. This file contains the following files:
    • The Atom plug-in framework configuration file for the feed application.
    • The Atom application JAR file.
  2. Load the Atom plug-in framework configuration file.
    1. Open the WSRR web UI.
    2. Switch to the Configuration perspective if necessary, by selecting Configuration in the Perspective list.
    3. Click Active Profile > Atom Feed Application.
    4. Click Load Atom Feed Application Configuration.
    5. Click Browse and navigate to the directory to which you extracted the AtomSample.zip file.
    6. Select AtomSample.xml and click Open.
    7. Enter AtomSample for the configuration item name.
    8. Click OK to load the file.
  3. Load the Atom application JAR file.
    1. Click Active Profile > Plug-in JARs.
    2. Click Load JAR plug-in.
    3. Click Browse and navigate to the directory to which you extracted the AtomSample.zip file.
    4. Select AtomSample.jar and click Open.
    5. Enter AtomSample for the Plug-in JAR configuration item name and click OK.
  4. Send an HTTP request to the Atom feed application.
    1. Open a web browser.
    2. Enter the following URL:
      http://hostname:port/ServiceRegistryFeeds/atomsample/feed/string
      replacing hostname and port with the appropriate values for your WSRR installation, and string with any alphanumeric string that does not contain spaces.
      If you have multiple instances of WSRR deployed, you must identify the instance by specifying its prefix:
      http://hostname:port/prefixServiceRegistryFeeds/atomsample/feed/string
      Where prefix is the WSRR Instance Prefix that you specified when you created the instance.
  5. Verify that the Atom feed application ran successfully.
    1. View the source of the Atom feed that is returned in response to the HTTP request.
    2. Verify that the Atom feed contains the following information:
      • An id of "AtomSampleFeed".
      • A title of "Sample atom application: simple feed". The prefix "Sample atom application" is defined in the "title_prefix" initialization parameter in the Atom plug-in framework configuration file.
      • An author of "Admin User".
      • A link to "http://www.ibm.com".
      • A self link to your HTTP request URL. The feed application builds this URL by using the "FeedURL" target template that is defined in the Atom plug-in framework configuration file.
      • An entry with a link that points to https://hostname:port/ServiceRegistryFeeds/atomsample/account/ABC123. The feed application builds this URL by using the "AccountTemplate" target template that is defined in the Atom plug-in framework configuration file.