Java™ Pet Store Demo 1.4 > Installing the Demo
Java BluePrints

Installing the Demo

This section describes how to install the Java Pet Store Demo.

System Requirements

Before installing the demo, perform these common setup steps.

Installing the Demo

    A directory called samples/blueprints/petstore1.4 will be created. The rest of this documentation will refer to this directory as <petstore.home> 

Run the asant using build.xml file to install and configure message services, database resources, and deploy the applications.


NOTE: If you've installed Application Server using a different HTTP Server port than default 8080 port, you must  click here to see what changes need to occur before proceeding.

Open a shell prompt and enter these commands:

cd <petstore.home>/src
asant
asant deploy

NOTE: Before redeploying, you must first execute the command asant undeploy in order to clean up existing files resulting from the intital deployment.


Verifying  Deployment    

As an optional step, you can use the Application Server Administration Tool to verify that the application has been registered.

To verify the registration of the application, do the following:

Execute the command asadmin list-components to look at applications deployed with a server instance. For example:

<install_dir>/bin/asadmin list-components --user <username> --password <password> 

You will see the four Pet Store applications listed:


After installing the demo, you can start using it .


Copyright © 2004 Sun Microsystems, Inc. All Rights Reserved.