The J2EETM Tutorial
Home
TOC
Index
PREV TOP NEXT Search
Feedback

Running the RosterApp Example

Setting Up

  1. In a terminal window, start the Cloudscape database server.
    cloudscape -start
     
    
  2. In another terminal window, start the J2EE server.
    j2ee -verbose
     
    
  3. Run the deploytool utility.
    deploytool
     
    

Deploying the Application

  1. In deploytool, open the RosterApp.ear file.
    1. Choose FileOpen from the main menu.
    2. In the Open Object dialog box, navigate to the j2eetutorial/examples/ears directory.
    3. Select the RosterApp.ear file.
    4. Click Open Object.
  2. Deploy the application.
    1. In deploytool, select RosterApp from the tree view.
    2. Choose ToolsDeploy from the main menu.
    3. In the Introduction dialog box, select the Return Client JAR checkbox.
    4. In the Client JAR File Name field, make sure that the file is called RosterAppClient.jar and that its path refers to the j2eetutorial/examples/ears directory.
    5. Click Next until the Review dialog box appears.
    6. Click Finish.

Running the Client

  1. In a terminal window, go to the j2eetutorial/examples/ears directory.
  2. Set the APPCPATH environment variable to RosterAppClient.jar.
  3. Type the following command:
    runclient -client RosterApp.ear -name RosterClient -textauth
     
    
  4. At the login prompts, enter guest for the user name and guest123 for the password.
Home
TOC
Index
PREV TOP NEXT Search
Feedback