To check if WAS is installed 1. Log in as the root user in

To check if WAS is installed
1. Log in as the root user in linux , open the terminal window, on the prompt
a. The prompt changes to:
linux:~#
2. See the directory structure.
a. linux:~# ls
If /opt directory is available then look for the sub directory IBM.
b. If IBM directory is available enter the command.
linux:~# cd /opt/IBM/
3. If WebSphere Application Server (WAS) is installed on the server a sub directory named
WebSphere would be present in /opt/IBM directory.
4. To start the WAS, give the following commands on linux:~#
a. linux:~# cd /opt/IBM/WebSphere/AppServer/bin
b. linux: /opt/IBM/WebSphere/AppServer/bin # ./startServer.sh server1
5. If the message:
ADMU3000I: Server server1 open for e-business; process id
Appears at the end. The WebSphere server has been installed and started successfully.
To check if DB2 has been installed
1. On the start up menu there would be tab for the IBM DB2 if DB2 is installed.
Or
2. login to linux server with user name as db2inst1
3. Open the terminal window, on the prompt type :
db2inst1@linux:~> db2
press Enter.
If the prompt changes to
db2 =>
then db2 is installed on the server.
To check if WAS is running on port 9060
1. In the client browser type
eg: http://url of server:9060/ibm/console, then WAS admin page should appear.
To Backup/Restore the database into DB2
1. Login into the OS as user db2inst1, which was created by default at the
installation.
2. create database in utf-8 format on the db2 prompt using following
command
create database database name using codeset utf-8 territory us collate using
system
Where database name has to be chosen
3. To restore the database into local server use the following command on
DB2 prompt type:
RESTORE DATABASE database name FROM source location TAKEN AT
20020331234149 INTO local database name REPLACE EXISTING
Where
Database name is the name of database (ex. cdrs as show in example below)
source location is the directory where backup database file has been kept and
local database name is the name of database in local server
Example:
20020331234149: time stamp which is already written name on your
backup file name like
CDRS.0.db2inst1.NODE0000.CATN0000.20060325172733.001 the
underlined text is your time stamp.
4. To backup a database from local server use the following command:
backup database database name to location path
where
database name is the name of database whose backup has to be taken.
location path is the path on file system where backup file has to be stored
Important: while taking backup or restoring from a backup , make
sure that users are not using the application and are not connected to
database
To set the Data Source for the application
Click on the resources option in the admin console:
1. In the JDBC provider Tab
a. Select node.
b. Click on New Button.
i. Select Database name (DB2).
ii. Select the provider type: DB2 universal JDBC Driver Provider.
iii. Select the implementation type: Connection Pool Data Source.
c. Click Next.
2. On next Page (Set General Properties):
a. Create a directory java in /opt directory
b. Copy the following jar file from the /opt/IBM/db2/V8.1/java to /opt/java
i. db2jcc.jar
ii. db2jcc_javax.jar
iii. db2jcc_license_cu.jar
iv. db2java.zip
c. Select scope:(Node Name)
d. Name:DB2 Universal JDBC Driver Provider
e. Description: No Change
f. Set the classpath as
i. /opt/java/db2jcc.jar
ii. /opt/java/db2jcc_javax.jar
iii. /opt/java/db2jcc_license_cu.jar
iv. /opt/java/db2java.zip
g. Set the native library path , which is the path where the above mentioned jar files
are stored ie /opt/java
h. Then, apply the changes and then save them.
3. Click on DB2 Universal JDBC driver provider link and then
a. Select DataSource hyperlink.
b. Click new then following screen will appear
i. Specify the JNDI Name “jdbc/confonetStateDS ” mentioned in the
application.
ii. Specify the Data Base Name (name of database in local server)
iii. Specify the type of driver – Driver type-4
iv. Specify Server Name: give ip or server name.
v. Change the port number to 50001
c. Then save the changes
4. To set authentication Click on DB2 Universal JDBC driver provider link then click on the
newly made datasource link.
a. Click on J2EE Connector Architecture (J2C) authentication data entries
hyperlink. On right side
b. Click new.
i. Specify alias:db2admin
ii. Specify Userid:db2inst1
iii. Specify: Password for user db2inst1
c. Save the Changes
5. To Set the authentication of the DataSource
a. Click on DB2 universal jdbc driver Provider and then click on Data Sources
b. Then Select Component- managed Authentication alias(linuxNode02/db2admin)
c. Then select container-managed authentication (linuxNode02/db2admin)
d. Apply and Save the changes.
6. Test Connection. If successful then datasource has been set successfully.
7. Click on DB2 universal jdbc driver Provider and then click on Data Sources
you have just created and click on custom properties hyperlink on right side
7. Click on the resultSetHoldability hyperlink.
8. Set the value field to 1 and click apply button.
9.
Click on the save hyperlink. And press the save button on the next page that appears.
To deploy an Application
In the admin console go to application tab:
1. Click on Install New Application:
2. Specify the path of the .ear file in the path to the new application option.
click next.
3. Check the “Generate Default Bindings”
Click next
4. Check on “Pre-compile JSP”
Click Next.
5. Check the confonet checkbox, then select the Cluster and Servers, Click Apply
6. Check Confonet checkbox
Click Next
7. In Map resources references to resources, check the confonet option, and click next.
8. The following page appears next:
Click on continue.
9. In Map virtual hosts for web modules, check the option for confonet.
Click on next.
10. The following page appears next:
Click on finish.
11. The following page appears next, if .ear has been successfully deployed.
12. Click on “Save to Master Configuration” to save the applications configuration and click
“Save” button on the next page.
13. Click on “Enterprise Application” to start the confonet application.
14 Now access the application using the following address from client machine:
http://server ip: 9080/confonetState
This will give you first screen of application.
User Name : admin
Password : admin123