Viewing the Source Code of Abdera-based Feed Sample application

The source code of the Feed Sample application is provided within the SampleFeedApp_Abdera.war file.

Locating the Application WAR

Locate the Feed Sample application WAR file that is provided with this documentation.  Depending on how you obtained this Sample application, you can find the WAR file in one of two places:

Viewing the Source Code in an Eclipse-based IDE

An Eclipse-based IDE is the simplest approach to examining the source code of the war file. Use any Eclipse 3.2.X, 3.3.X with the Web Tools Project 2.5 or higher, or Rational Application Developer, version 7.0 or higher, and import the WAR file as per the following steps outlined below.

  1. From the Eclipse IDE menu, select File->Import.
  2. In the presented panel, expand the Web option, then select WAR file, then click Next.
  3. In the WAR File entry field, click Browse, and select the file you located earlier. This action populates the other two fields.
  4. Accept defaults for the project name, if they are acceptable, and click Next.
  5. Click Finish.

When the import process completes, a new project SampleFeedApp is created. The application source code can be accessed from this project. You will have to add the Abdera libraries in the build path of the project. You will also have to change the Project Facets settings of JavaTM to 1.4.

Steps for adding the Abdera libraries to build path:
  1. Create a folder for the shared library option. For instance, lets call it the "feed-library".
  2. Copy the following jar files into that folder: abdera.*.retro.jar, retroweaver-rt*.jar, axiom-api-1.2.5.jar, commons-httpclient-3.1-rc1.jar, xlxpScannerUtils.jar, axiom-impl-1.2.5.jar, stax-api.jar, commons-codec-1.3.jar, xlxpScanner.jar, jaxen-1.1.1.jar, xml-apis.jar. Refer to the Overview section to locate these files.
  3. Navigate to project Properties > Java Build Path > Libraries
  4. Click on Add External JARs
  5. Select all the above mentioned JARs and click on OK
  6. Click on OK to complete the process
Steps for changing the Project Facets settings:
  1. Navigate to project Properties > Project Facets
  2. Change the Project Facet Java Version to 1.4
  3. Click on OK to complete the process