0% found this document useful (0 votes)
753 views2 pages

WebSphere Application Server AMI Cheatsheet For Demo

Extend Smart SOA Application Foundation into a Public Cloud 1) Video of demo : http://www.youtube.com/watch?v=6fJt1K4uOVQ 2) Associated Demo script: https://www.ibm.com/developerworks/wikis/download/attachments/104531269/websphere_ami_trade61_demo.zip Twitter: WebSphereClouds

Uploaded by

Yakura Coffee
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
753 views2 pages

WebSphere Application Server AMI Cheatsheet For Demo

Extend Smart SOA Application Foundation into a Public Cloud 1) Video of demo : http://www.youtube.com/watch?v=6fJt1K4uOVQ 2) Associated Demo script: https://www.ibm.com/developerworks/wikis/download/attachments/104531269/websphere_ami_trade61_demo.zip Twitter: WebSphereClouds

Uploaded by

Yakura Coffee
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

IBM WebSphere Application Server v7.

0 AMI Demo

Prereqs (done before the live demo)


===============================================================
1) Active a WebSphere Application Server v7.0 AMI instance
Ensure ssh and WebSphere Application Server ports are unblocked

2) Active a DB2 v9.5 AMI instance


Ensure ssh and DB2 ports are unblocked

3) On the WebSphere Application Server v7.0 AMI

- Store your db2 ssh key on to the AMI


(I used /root/db2_ami_ssh_key.pem but the script is configurable)

- give your db2 ssh key chmod 600 permissions


(chmod 600 /root/db2_ami_ssh_key.pem)

- make sure you can ssh with the db2 ssh key
from the Webpshere Application Server v7.0 AMI to the DB2 AMI
(ssh -i /root/db2_ami_ssh_key.pem db2_ami_hostname)

- create a directory to store the trade 61 application


(mkdir /trade)

- Download the trade61 application and scp it to the WebSphere Application Server AMI
(scp -i was_ami_sshkey tradeInstall.zip was_ami_hostname:/trade/tradeInstall.zip)
The trade61 package can be downloaded at
https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=trade6

- Store the websphere_ami_trade61.sh demo script


(I used /trade/websphere_ami_trade61.sh)

- Give the websphere_ami_trade61.sh execute permissions


(chmod +x websphere_ami_trade61.sh)

- Using an editor like VI, set the variables of the websphere_ami_trade61.sh script
# Your Amazon AWS SSH key file
sshkeyfile=/root/db2_ami_ssh_key.pem

# The directory you downloaded the trade install package to


traderoot=/trade

# Download the Trade61 Application from


# https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=trade6
# The default name of this file is tradeInstall.zip
tradefile=tradeInstall.zip

# The hostname of your db2 ec2 instance


aws_db2_hostname=ec2-174-129-185-136.compute-1.amazonaws.com

# WebSphere Application Server v7.0 AMI virtuser password


WEBSPHERE_AMI_PASSWORD=password

# db2user
db2user=db2inst1

# db2user password
db2user_password=passw0rd

# db2port
# this port number can be obtained by running these commands on the DB2 AMI
# su - $dbuser
# db2 get dbm cfg | grep SVCENAME
db2port=50001

# db2home
db2home=/opt/ibm/db2/V9.5

4) Launch the /trade/websphere_ami_trade61.sh script


Select Menu Option 1 to Configure the DB2 Database for Trade61

5) When the script completes


Select Menu option 3 to exit

Live Demo
===============================================================
1) Launch the /trade/websphere_ami_trade61.sh script
Select Menu Option 2
To Install the Trade 61 application into the WebSphere Application Server v7.0 AMI

2) When the script completes


Select Menu option 3 to exit

3) In a WebBrowser bringup the trade61 application


http://websphere_application_server_ami_hostname:9080/trade

User data, portfolios, and stock quote data needs to be loaded into the database.
Click Configuration > (Re-)populate Trade database

4) After the Trade61 Application data is seeded into the database, run the trade scenario via
http://websphere_application_server_ami_hostname:9080/trade/scenario

You might also like