Previous  Table of Contents  Next  

  J2EE Tools - Lightweight IDE for J2EE Version 1.5.0  
     
 

GETTING STARTED

Build, Deploy and Run Book Store 1 Web Application

This page describes how to build, deploy and run the Book Store 1 web application in the J2EE Tutorial.
  1. Browse Book Store 1 Web Application in J2EE Tutorial:

    1. Click Help | J2EE Tutorial in the J2EE Tools window.
    2. Wait until the J2EE Tutorial appears in the browser window.
    3. Scroll to and click Chapter 4: Java Servlet Technology.
    4. Scroll to and click The Example Servlets.
    5. When done browsing, click X in the top right corner of the browser window.
  2. Build Book Store 1 Web Application:

    1. Click the Application tab in the J2EE Tools window.
    2. Click the Project Directory box in the Application tab then click web in the popup list.
    3. Click the Application Directory box then click bookstore1.
    4. Click the Build File box then click build.xml (default).
    5. Click the Build Target box then click default.
    6. Click Tools | Build.
    7. Wait until Build Successful appears in the Build Target window.
    8. Click X in the top right corner of the Build Target window.
  3. Start Database Server:

    1. Click Tools | Database Server | Start in the J2EE Tools window.
    2. Wait until Command start-database executed successfully appears in the Start Database Server window.
    3. Click X in the top right corner of the Start Database Server window.
  4. Create Book Store Database Tables:

    1. Click the Build Target box in the J2EE Tools window then click create-tables in the popup list.
    2. Click Tools | Build.
    3. Wait until Build Successful appears in the Build Target window.
    4. Click X in the top right corner of the Build Target window.
  5. Display Book Store Database Table:

    1. Click Tools | Database | Command Line Interface in the J2EE Tools window.
    2. Wait until the Database Command Line Interface window appears.
    3. Click the Enter field in the Database Command Line Interface window then type select * from web_bookstore_books; and press the Enter key.
    4. Verify that the inventory field to right of the title field containing Duke: A Biography of the Java Evangelist contains 20.
  6. Start Application Server:

    1. Click Tools | Application Server | Start in the J2EE Tools window.
    2. Wait until Application server startup complete appears in the Start Application Server window.
  7. Create Book Store JDBC Resource on Application Server:

    1. Click the Build Target box in the J2EE Tools window then click create-jdbc-resource in the popup list.
    2. Click Tools | Build.
    3. Wait until Build Successful appears in the Build Target window.
    4. Click X in the top right corner of the Build Target window.
  8. Deploy Book Store 1 Web Application Web Archive File on Application Server:

    1. Click Tools | Deployment | Deploy in the J2EE Tools window.
    2. Wait until Command deploy executed successfully appears in the Deploy Archive File window.
    3. Click X in the top right corner of the Deploy Archive File window.
  9. Run Book Store 1 Web Application Web Client:

    1. Click Tools | Arguments in the J2EE Tools window.
    2. Type /bookstore in the Input dialog then click OK.
    3. Click Tools | Run | Web Client in the J2EE Tools window.
    4. Wait until the Duke's Bookstore page appears in the browser window.
    5. Click Start Shopping.
    6. Click Duke: A Biography of the Java Evangelist.
    7. Click Add to Cart.
    8. Click Check Shopping Cart.
    9. Click Check Out.
    10. Click Submit Information.
    11. Wait until Thank you for purchasing books from us appears.
    12. Click Continue Shopping.
    13. Click X in the top right corner of the browser window.
  10. Undeploy Book Store 1 Web Application Web Archive File on Application Server:

    1. Click Tools | Deployment | Undeploy in the J2EE Tools window.
    2. Wait until Command undeploy executed successfully appears in the Undeploy Archive File window.
    3. Click X in the top right corner of the Undeploy Archive File window.
  11. Stop Application Server:

    1. Click Tools | Application Server | Stop in the J2EE Tools window.
    2. Wait until Domain domain1 stopped appears in the Stop Application Server window.
    3. Click X in the top right corner of the Stop Application Server window.
    4. Click X in the top right corner of the Start Application Server window.
  12. Display Book Store Database Table:

    1. Click the Enter field in the Database Command Line Interface window then press the Up Arrow key.
    2. Verify that select * from web_bookstore_books; appears in the Enter field and press the Enter key.
    3. Verify that the inventory field to the right of the title field containing Duke: A Biography of the Java Evangelist now contains 19.
    4. Click the Enter field then type exit; and press the Enter key.
    5. Click X in the top right corner of the Database Command Line Interface window.
  13. Stop Database Server:

    1. Click Tools | Database Server | Stop in the J2EE Tools window.
    2. Wait until Command stop-database executed successfully appears in the Stop Database Server window.
    3. Click the X in the top right corner of the Stop Database Server window.
 

 
Get J2EE Tools from Field Bird at SourceForge.net Previous  Table of Contents  Next