Java Solaris Communities My SDN Account Join SDN

Previous Previous     Contents     Next Next

Building, Packaging, Deploying, and Running the firstcup Enterprise Application

In this section, you will build the DukesBirthdayBean and the firstcup web client, package them into an EAR file, deploy the EAR file to the server, and run the application.

ProcedurePreparing the Deployment Descriptor

In this task, you will remove some extra parameters from the deployment descriptor of the firstcup-war module. NetBeans generates these parameters, but we don't need them in our example.

  1. Expand the firstcup-war module in the Projects pane.

  2. Expand the Configuration Files directory.

  3. Double-click web.xml.

  4. Click General at the top of the editor window.

  5. Select the plus sign next to Context Parameters.

  6. From the table of context parameters, select the first context parameter in the table and click Remove.

  7. Repeat step 6 until all context parameters are removed.

  8. Click XML at the top of the editor window.

  9. Remove the entire welcome-file-list element and all its contents.

  10. Save the file by selecting File->Save from the menu bar.

ProcedureBuilding and Packaging the firstcup Enterprise Application

While performing this task, you'll build and package the DukesBirthdayBean enterprise bean and the firstcup web client into an EAR file, firstcup.ear, in the dist directory.

  1. Select firstcup in the Projects tab.

  2. Right-click firstcup and select Build Project.

ProcedureDeploying the firstcup Enterprise Application

While performing the previous task, you packaged the DukesBirthdayBean enterprise bean and firstcup web client into the firstcup.ear file. Now you'll deploy them to the Application Server.

  1. Select firstcup in the Projects tab.

  2. Right-click firstcup and select Deploy Project.

ProcedureRunning the firstcup Application

This section describes how to run the firstcup application.

  1. Launch an internet browser.

  2. Enter the following URL in the address field of the browser:

    http://localhost:8080/firstcup

  3. Enter your birth date in the Your birthday text field. Make sure you use the date pattern specified on the page: MM/dd/yyyy.

  4. Click Submit.

  5. After the response.jsp page is launched, click Back to return to the greeting.jsp page.

Previous Previous     Contents     Next Next
Company Info Contact Terms of Use Privacy Copyright 1994-2006 Sun Microsystems, Inc.