Installing the Adventure Builder Reference application on Sun Java
System Application Server PE 8.2
using NetBeans 5.0
This document discusses the steps to install the Adventure Builder
Reference application on Sun Java System Application Server 8.2 and
using NetBeans 5.0. You can download Adventure Builder
here. Sun
Java
System Application Server 8.2 can be downloaded
here.
To install the demo, follow these steps:
- Unzip the Adventure Builder distribution bundle into any
directory.
Unzipping the bundle creates a
directory called adventure1.0.5
. The rest of this documentation refers to this directory as
<adventure.home>.
-
Add Sun Java System Application Server PE 8.2 to NetBeans. Go to
the Runtime tab, right click on servers and select Add Server. Select
Sun Java System Application Server and give the path to the server
installation directory. Also provide the user name and password.
-
Start the database and the application server.
-
The Adventure Builder
Reference application consists of six separate applications and also
a setup script that sets up database and other resources. You
have to create a free-form project in NetBeans for each of the
applications. Open each application as a different free-form project.
What you need to do is to take File -> New Project -> General
-> Java Project with existing Ant Script and point to the ant script
for each application.
-
Setup resources used by the Adventure Builder
Reference application. Go to File -> New Project -> General ->
Java Project
with existing Ant Script and select the folder containing build file as
<adventure.home>/setup. Select the build script as
<adventure.home>/setup/setup.xml. In the next window, select the
build project task as core. The rest of the
fields automatically fill up and you can finish the wizard.
-
Make sure you Configure your environment by changing the
settings in
<adventure.home>/project/setup/setup.properties file.
-
Build the project.
-
Deploy the applications. Here is an example for how to deploy
one
application,
activitysupplier. Follow the same steps for all the other applications.
Make sure you build the bank, activitysupplier,airlinesupplier, and
lodgingsupplier applications before building OPC application. The order
of consumerwebsite does not matter.
-
Go to File -> New Project -> General -> Java Project
with existing Ant Script.
-
Select the folder containing build file as
<adventure.home>/project/apps/activitysupplier. The rest of the
fields automatically fill up and you can finish the wizard.
-
Build and deploy the project.
-
Follow steps 9-11 for all the other apps.
-
After installing the adventure builder, you can start using it
by accessing the URL http://localhost:8080/ab.