Sun Java Studio J2EE Application Tutorial
Sun Java Studio Enterprise 6
817-5554-10
Contents |
Obtaining and Installing the Required Software
Starting the Application Server
Setting the Sun Java System Application Server as the Default Server
Setting Up Database Connectivity
Tutorial Database Table Descriptions
2. Introduction to the Tutorial
Functionality of the Tutorial Application
Application Functional Specification
User's View of the Tutorial Application
Architecture of the Tutorial Application
Overview of Tasks for Creating the Tutorial Application
Creating the Tutorial's Web Service
Installing and Using the Provided Client
3. Building the EJB Tier of the DiningGuide Application
Overview of the Tutorial's EJB Tier
Creating Entity Beans With the EJB Builder
Creating the Restaurant and Customerreview Entity Beans
Creating Create Methods for CMP Entity Beans
Creating Finder Methods on Entity Beans
Creating Business Methods for Testing Purposes
Creating Detail Classes to View Entity Bean Data
Creating the Detail Class Properties and Their Accessor Methods
Creating the Detail Class Constructors
Creating Business Methods on the Entity Beans to Fetch the Detail Classes
Creating a Test Client for the Restaurant Bean
Providing the Sun Java System Application Server Plugin With Database Information
Deploying and Executing the Restaurant Bean's Test Application
Using the Test Client to Test the Restaurant Bean
Checking the Additions to the Database
Creating a Test Client for the Customerreview Bean
Deploying and Executing the Customerreview Bean's Test Application
Testing the Customerreview Entity Bean
Checking the Additions to the Database
Creating a Session Bean With the EJB Builder
Coding a Session Bean's Create Method
Creating Business Methods to Get the Detail Data
Creating a Business Method to Create a Customer Review Record
Creating Business Methods That Return Detail Class Types
Creating a Test Client for a Session Bean
Adding Entity Bean References to the EJB Module
Providing the Sun Java System Application Server Plugin With Database Information
Deploying and Executing the Test Application
Using the Test Client to Test a Session Bean
Checking the Additions to the Database
4. Creating the DiningGuide Application's Web Service
Overview of the Tutorial's Web Service
Creating the Tutorial's Web Service
Creating the Logical Web Service
Generating the Web Service's Runtime Classes
Creating a Test Client and Test Application
Adding the Web Service to the J2EE Application
Deploying the Test Application
Using the Test Application to Test the Web Service
Making Your Web Service Available to Other Developers
Generating Client Files From the WSDL File
5. Creating a Client for the Tutorial Application
Creating the Client With the Provided Code
Running the Tutorial Application
Displaying Customer Review Data for a Selected Restaurant
Creating a New Customer Review Record
CustomerreviewBean.java Source
CustomerreviewDetail.java Source
DiningGuideManagerBean.java Source
CustomerReviewTable.java Source
B. DiningGuide Database Script
Script for a PointBase Database
C. Creating the Tutorial With an Oracle Database
Setting up Database Connectivity With the Oracle Database
Enabling the Oracle Type 4 JDBC Driver
Connecting the IDE to the Oracle Server
Creating a JDBC Connection Pool
Creating a JDBC Persistence Manager
Creating EJB Components With an Oracle Database
Creating the Web Service With an Oracle Database
Copyright © 2004, Sun Microsystems, Inc. All rights reserved.