Installing the Wink-based Feed sample application on WebSphere Application Server Version 7.0
The IBM® support for feeds, using Apache Wink libraries, primarily consists of the following items:
- Feeds support libraries: JavaTM archive (JAR) files for Apache
Wink and its dependencies
- Feed application: A sample application that demonstrates
the use of the feeds support libraries
This section describes the procedure for installing the Feed sample application into Version 7.0 of IBM WebSphere®
Application Server. It is assumed that you are familiar with application installation and administration for the application server.
Before you begin
Locate the Feed sample application WAR file that is provided with this documentation.
-
If you have installed IBM WebSphere Application Server Version Feature Pack for Web 2.0 and Mobile,
Version 1.1.0, then you can find the WAR file in your installation tree; for example, if you installed the feature pack in
the following location:
Linux and UNIX: /opt/WebSphere/AppServer
|
Windows: c:\WebSphere\AppServer
|
Then, you can find the WAR and library files in the following location:
Linux and UNIX: /opt/WebSphere/AppServer/web2mobilefep_1.1/samples/Feed/SampleFeedApp_Wink.war
|
Windows: c:\WebSphere\AppServer\web2mobilefep_1.1\samples\Feed\SampleFeedApp_Wink.war
|
Installing the sample application using the administrative console
-
Log into the administrative console for the application server.
-
Navigate to Applications > New Application > New Enterprise Application.
-
Browse your file system, and select the SampleFeedApp_Wink.war file that you located earlier, and click Next.
-
Select the Fast path option, and click Next.
-
Accept the defaults for installation options. Click Next.
-
Accept the defaults for map modules to servers. Click Next.
-
Accept the defaults for map virtual hosts for Web modules. Click Next.
-
Enter Context Root as SampleFeedApp_Wink and click Next.
-
Click Finish.
-
Click Save to the master configuration.
Adding required JAR files
- Wink-based Feeds sample requires the following JAR files:
- JAX-RS JAR files: ibm-wink-jaxrs-*.jar and jsr311-api-*.jar
- JSON4J JAR file: JSON4J.jar
- Logging JAR files: slf4j-api-*.jar, slf4j-jdk14-*.jar
and jcl-over-slf4j-*.jar
- Support for the Wink client calls: httpclient-*.jar,
httpcore-*.jar and commons-codec-*.jar
- Other Wink dependencies: commons-lang-*.jar
-
The previously mentioned JAR files must be added into the class path. One mechanism is to create a
shared library, and associate it with the applications that need these
JAR files. Complete the following steps to create a shared library
and associate it with the application:
Starting the application
- Navigate to Applications > Application Types > WebSphere enterprise applications..
- Select SampleFeedApp_Wink_war application, and click Start.