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
- 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.
- Load the Atom plug-in framework configuration file.
- Open the WSRR web UI.
- Switch to the Configuration perspective if necessary,
by selecting Configuration in the Perspective list.
- Click .
- Click Load Atom Feed Application Configuration.
- Click Browse and navigate to
the directory to which you extracted the AtomSample.zip file.
- Select AtomSample.xml and click Open.
- Enter AtomSample for the configuration
item name.
- Click OK to load the file.
- Load the Atom application JAR file.
- Click .
- Click Load JAR plug-in.
- Click Browse and navigate to
the directory to which you extracted the AtomSample.zip file.
- Select AtomSample.jar and click Open.
- Enter AtomSample for the Plug-in
JAR configuration item name and click OK.
- Send an HTTP request to the Atom feed application.
- Open a web browser.
- 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.
- Verify that the Atom feed application ran successfully.
- View the source of the Atom feed that is returned in
response to the HTTP request.
- 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.