Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added more documentation

...

You must have maven installed in order to build DayTrader. Maven can be downloaded from http://maven.apache.org/download.html. Unzip the file to a directory and run mvn.bat|.sh in the bin subdirectory to install. Add the bin subdirectory to you system path.

Maven needs a repository. Typically it is at the following:

...

Add jpa2 plugins from repository http://geronimo.apache.org/plugins/openjpa2. One way to do this is the following:

  1. Go to the Geronimo console at http://<host>:8080/console and logon
  2. Select plugins
  3. Click on Add Repository and add http://geronimo.apache.org/plugins/openjpa2Image Modified
  4. Click on Update Repository List
  5. Make sure the new repository is selected. Then click on Show Plugins in selected repository. On that panel:
    1. Select GeronimoPlugins, OpenJPA2::CAR 2.1.3-SNAPSHOT and GeronimoPlugins, OpenJPA2::Deployer 2.1.3-SNAPSHOT
    2. Click on Install
  6. On the next screen, click on Install

Deploy the DayTrader application. This can be done through the console as follows:

  1. Click on Deploy New
  2. For Archive, browse to DayTrader/branches/2.1.3/modules/ear/target/daytrader-ear-2.1.3.ear
  3. For Plan, browse to DayTrader/branches/2.1.3/plans/dayTrader-derby-plan.xml
  4. Check Start app after install

Re-start the server.

Make sure that the system module, org.apache.geronimo.configs/axis-deployer/2.1.5/car, is running.

Run DayTrader:

  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 and start trading