Processing an Order in a Purchase Order System

Configuring the Tutorial Environment

Before you can deploy your application, GlassFish V2 must be configured correctly and running.

ProcedureTo check the status of GlassFish

  1. If the Services window is not visible, choose Window -> Services.

  2. In the Services window, expand the Servers node.

    The Servers node should contain a GlassFish V2 or Sun Java System Application Server subnode. If an application server node does not appear, go to To configure GlassFish.

    If a green arrow badge appears on the GlassFish V2 node, the server is running. If a green arrow badge does not appear, go to To start GlassFish.

ProcedureTo configure GlassFish

  1. If the Services window is not visible, choose Window -> Services.

  2. In the Services window, right-click the Servers node and choose Add Server from the pop-up menu.

    The Add Server Instance dialog box opens.

  3. In the Choose Server page, from the Server drop-down list, select GlassFish V2.

  4. (Optional) In the Name field, change the default name for the server.

    The IDE uses this name to identify the server.

  5. Click Next.

    The Platform Location Folder page appears.

  6. In the Platform Location field, use the Browse button to navigate to and select the installation location of the application server.

    The default installation location is different depending on the type of installation and the platform, as shown in the following table.

    Platform 

    Installer 

    SOA Installation 

    Tools Bundle Installation 

    Solaris OS  

    Linux 

    root 

    /opt/SUNWappserver 

    /opt/SDK 

    Solaris OS 

    Linux 

    user 

    ~/SUNWappserver 

    ~/SDK 

    Mac OS X 

    N/A 

    ~/SUNWappserver 

    ~/SDK 

    Windows 

    N/A 

    C:\Sun\AppServer 

    C:\Sun\SDK 

  7. Select the Register Local Default Domain radio button and click Next.

  8. Enter the user name and password for the domain's administrator.

    If you accepted the default values during the installation, the user name is admin and the password is adminadmin.

  9. Click Finish.

ProcedureTo start GlassFish

  1. In the Services window, right-click the GlassFish V2 node and choose Start.

  2. Wait until the following message appears in the Output window:

    Startup complete.

    When the server is running, the IDE displays a green arrow badge on the GlassFish V2 node.