Chapter 6. DB2 UDB Web service 107
6.5.3 Installing the application on WebSphere Application Server
To install the exported application on WebSphere Application Server profile, perform the
following steps:
1. Start your WebSphere Application Server profile.
2. Open a browser and enter the WebSphere Application Server Admin Console URL, in the
form:
http://<iSeries_Server>:<was_admin_port>/ibm/console
In our example this would be:
http://rchas10:9060/ibm/console
3. On the administrative console login screen, enter your user ID (you can enter any ID you
want) and click Log in (see Figure 6-38).
Figure 6-38 Admin console login window
4. On the WebSphere Administrative Console, expand Applications and click Install New
Application in the navigation menu on the left hand side (see Figure 6-39).
Figure 6-39 Administrative Console navigation menu
108 Building SOA-based Solutions for IBM System i Platform
5. On the Preparing for the application installation panel, select Local file system and
browse to the previously exported EAR file and select it and click Open. In our example,
that location was C:\Temp\db2dadxwsEAR.ear (see Figure 6-40). Then, click Next. This
step can take a little while, depending on network speed.
Figure 6-40 Select the previously exported EAR file
6. On the “Choose to generate default bindings and mappings” panel, click Next.
7. On the “Step 1: select installation options” panel, click Step 4 Summary (see
Figure 6-41).
Figure 6-41 From Step 1 we immediately jump to Step 4
Chapter 6. DB2 UDB Web service 109
8. On the “Step 4: Summary” panel, click Finish (see Figure 6-42).
Figure 6-42 Summary of installation options
If the application is installed correctly, you should see a confirmation message (see
Figure 6-43).
Figure 6-43 Installation confirmation
110 Building SOA-based Solutions for IBM System i Platform
9. Click Save to Master Configuration to save the changes to the WebSphere Application
Server configuration.
10.On the Save panel, click Save (see Figure 6-44).
Figure 6-44 Save the configuration
11.In the Administrative Console navigation, expand Applications and click Enterprise
Applications. Locate the installed application (db2dadxwsEAR in our example), select
the check box next to it, and click Start to start the application (see Figure 6-45).
Figure 6-45 Start the application
12.The next steps are additional (and not typical for other applications) steps for the DB2
Web services based on WORF and DADX. First, you need to create the classes folder
under your profile’s directory in IFS. For our default server the directory is:
/QIBM/UserData/WebSphere/AppServer/V6/Base/profiles/default/classes
Chapter 6. DB2 UDB Web service 111
13.Copy the following three JAR files that are bundled with your DB2 Web services
applications to the new directory:
–worf.jar
worf-servlet.jar
jt400.jar
For example, copy the files from:
/QIBM/UserData/WebSphere/AppServer/V6/Base/profiles/default/installedApps/
<systemName>/db2dadxwsEAR.ear/db2dadxws.war/WEB-INF/lib/
to
/QIBM/UserData/WebSphere/AppServer/V6/Base/profiles/default/classes
Now you should have three JAR files in your classes folder as shown in Figure 6-46.
Figure 6-46 JAR files
14.Restart your WebSphere Application Server profile.
Note: You need to copy three JAR files because of the way class loaders work in
i5/OS. This step is not required if you install the DB2 Web services application to
WebSphere Application Server on other platforms.

Get Building SOA-based Solutions for IBM System i Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.