Before You Begin |
Welcome to the Sun Open Net Environment (Sun ONE) Studio 4, Enterprise Edition for Java tutorial. This tutorial shows you how to use the following features of the Sun ONE Studio 4 integrated development environment (IDE):
You can create the examples in this book in the environments listed in the release notes on the following web site:
http://forte.sun.com/ffj/documentation/index.html
Screen shots vary slightly from one platform to another. You should have no trouble translating the slight differences to your platform. Although almost all procedures use the interface of the Sun ONE Studio 4 software, occasionally you might be instructed to enter a command at the command line. Here too, there are slight differences from one platform to another. For example, a Microsoft Windows command might look like this:
c:>cd MyWorkDir\MyPackage |
To translate for UNIX® or Linux environments, simply change the prompt and use forward slashes:
% cd MyWorkDir/MyPackage |
This tutorial creates an application that conforms to the architecture documented in Java 2 Platform, Enterprise Edition (J2EE) Blueprints. If you want to learn how to use the features of Sun ONE Studio 4, Enterprise Edition for Java to create, develop, and deploy a J2EE compliant application, you will benefit from working through this tutorial.
Before starting, you should be familiar with the following subjects:
This book requires a knowledge of J2EE concepts, as described in the following resources:
Familiarity with the Java API for XML-Based RPC (JAX-RPC) is helpful. For more information, see this web page:
http://java.sun.com/xml/jaxrpc
This manual is designed to be read from beginning to end. Each chapter in the tutorial builds upon the code developed in earlier chapters.
Chapter 1 lists the software requirements for the DiningGuide tutorial, explains how to start the Sun ONE Studio 4 IDE and the Sun ONE Application Server 7 server, how to get the IDE and the application server to recognize each other and both communicating with an Oracle database, how to create the tutorial database tables, and then create a database schema in the IDE based on those tables.
Chapter 2 describes the functionality and architecture of the tutorial application.
Chapter 3 provides step-by-step instructions for creating the EJB tier of the tutorial application, and how use the IDE's test application facility to test each bean.
Chapter 4 describes how to use the IDE to generate the tutorial's web service from its EJB tier, and how to test the web service.
Chapter 5 explains how a provided Swing client accesses the output generated from the Web Services module in Chapter 4, and how to run the tutorial application.
Appendix A provides complete source files for the tutorial application.
Appendix B provides the database script for the tutorial application.
The names of commands, files, and directories; on-screen computer output |
||
What you type, when contrasted with on-screen computer output |
||
Read Chapter 6 in the User's Guide. |
||
Sun ONE Studio 4 documentation includes books delivered in Acrobat Reader (PDF) format, release notes, online help, readme files for example applications, and Javadoc documentation.
The documents described in this section are available from the docs.sun.comSM web site and from the documentation page of the Sun ONE Studio Developer Resources portal (http://forte.sun.com/ffj/documentation).
The docs.sun.com web site (http://docs.sun.com) enables you to read, print, and buy Sun Microsystems manuals through the Internet. If you cannot find a manual, see the documentation index installed with the product on your local system or network.
You can also find the completed tutorial applications at: http://forte.sun.com/ffj/documentation/tutorialsandexamples.html
Online help is available inside the Sun ONE Studio 4 development environment. You can access help by pressing the help key (Help in a Solaris environment, F1 on Microsoft Windows and Linux), or by choosing Help Contents. Either action displays a list of help topics and a search facility.
You can download examples that illustrate a particular Sun ONE Studio 4 feature, as well as completed tutorial applications, from the Sun ONE Studio Developer Resources portal at:
http://forte.sun.com/ffj/documentation/tutorialsandexamples.html
The site includes the applications used in this document.
Javadoc documentation is available within the IDE for many Sun ONE Studio 4 modules. Refer to the release notes for instructions on installing this documentation. When you start the IDE, you can access this Javadoc documentation within the Javadoc pane of the Explorer.
Sun is interested in improving its documentation and welcomes your comments and suggestions. Email your comments to Sun at this address:
Please include the part number (816-7860-10) of your document in the subject line of your email.
Copyright © 2002, Sun Microsystems, Inc. All rights reserved.