Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add info and attachments for WebSphere

...

  1. Go to http://<host>:8080/daytrader/
  2. Click on the Configuration tab and click on (Re)-create DayTrader Database Tables and Indexes
  3. Click on the Configuration  tab and click on (Re)-populate DayTrader Database
  4. Click on the Trading & Portfolios tab, login, and start trading

Run DayTrader on WebSphere

This writeup assumes some familiarity with WebSphere. Also, the script that is provided assumes a local unmanaged node with a single server.

At a minimum, the WebSphere Application Server must be at version 7.0.0.9. You must also have installed the Feature Pack for OSGi Applications and Java Persistence API 2.0. Make sure you have a profile that is augmented for JPA 2.0 function.

Download the following jython script. This script is used to configure the objects needed by DayTrader (data sources, JMS queues and topics) and install the application.

daytrader_singleServer.py

Within the bin directory of the augmented profile:

  1. Start the server.
  2. Run the script using the following command: "wsadmin -f <location of daytrader_singleServer.py> <script options>". You can display the list of available script options by specifying the option "--help".
  3. Re-start the server.

Run DayTrader

  1. On a web browser, go to http://localhost:Image Added<application port>/daytrader/ (The default application port is 9080. But, you may have a different one if you created a new profile.)
  2. Click on the Configuration tab and click on (Re)-create DayTrader Database Tables and Indexes
  3. Click on the Configuration  tab and click on (Re)-populate DayTrader Database
  4. Click on the Trading & Portfolios tab, login, and start trading