★ wanayoo — archive 1999 https://blueprints.dev.java.net/adventurebuilder/usingnetbeans.htmlNouvelle recherche | Portail wanayoo
Login | Register
My pages Projects Communities java.net

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:

  1. 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>.

  2. 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.

  3. Start the database and the application server.

  4. 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.

  5. 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.

  6. Make sure you Configure your environment by changing the settings in <adventure.home>/project/setup/setup.properties file.

  7. Build  the project.

  8. 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.

  9. Go to File -> New Project -> General -> Java Project with existing Ant Script.

  10. 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.

  11. Build and deploy the project.

  12. Follow steps 9-11 for all the other apps.

  13. After installing the adventure builder, you can start using it by accessing the URL http://localhost:8080/ab.