Previous  Table of Contents  Next  

  J2EE Tools - Lightweight IDE for J2EE Version 1.6.0  
     
 

GETTING STARTED

Build, Deploy and Run Cart Enterprise Application

This page describes how to build, deploy and run the Cart enterprise application in the J2EE Tutorial.
  1. Browse Cart Enterprise 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. Click Enterprise Beans.
    4. Click Running the Enterprise Bean Examples.
    5. Click The Cart Example.
    6. When done browsing, click X in the top right corner of the browser window.
  2. Build Cart Enterprise Application:

    1. Click the Application tab in the J2EE Tools window.
    2. Click the Project Directory box in the Application tab then click ejb in the popup list.
    3. Click the Application Directory box then click cart.
    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 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.
  4. Deploy Cart Enterprise Application 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.
  5. Run Cart Enterprise Application Client (see item 11 in Troubleshooting Problems for help):

    1. Click Tools | Run | Application Client in the J2EE Tools window.
    2. Wait until the following output appears in the Run Application Client window:
      Retrieving book title from cart: Infinite Jest
      Retrieving book title from cart: Bel Canto
      Retrieving book title from cart: Kafka on the Shore
      Removing "Gravity's Rainbow" from cart
      Caught a BookException: "Gravity's Rainbow" not in cart
    3. Click X in the top right corner of the Run Application Client window.
  6. Undeploy Cart Enterprise Application 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.
  7. Stop Application Server:

    1. Click Tools | Application Server | Stop in the J2EE Tools window.
    2. Wait until Command stop-domain executed successfully 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.
 

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