...
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:
- Go to the Geronimo console at http://<host>:8080/console and logon
- Select plugins
- Click on Add Repository and add http://geronimo.apache.org/plugins/openjpa2
- Click on Update Repository List
- Make sure the new repository is selected. Then click on Show Plugins in selected repository. On that panel:
- Select GeronimoPlugins, OpenJPA2::CAR 2.1.3-SNAPSHOT and GeronimoPlugins, OpenJPA2::Deployer 2.1.3-SNAPSHOT
- Click on Install
- On the next screen, click on Install
Deploy the DayTrader application. This can be done through the console as follows:
- Click on Deploy New
- For Archive, browse to DayTrader/branches/2.1.3/modules/ear/target/daytrader-ear-2.1.3.ear
- For Plan, browse to DayTrader/branches/2.1.3/plans/dayTrader-derby-plan.xml
- 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:
- Go to http://<host>:8080/daytrader/
- Click on the Configuration tab and click on (Re)-create DayTrader Database Tables and Indexes
- Click on the Configuration tab and click on (Re)-populate DayTrader Database
- Click on the Trading & Portfolios tab and start trading