Before You Begin |
Welcome to the Sun Java
Studio Enterprise 6 J2EE application tutorial. This tutorial shows you how to use the following features of the Java Studio Enterprise integrated development environment (IDE):
See the release notes for a list of environments in which you can create the example in this book. The release notes are available on this web page:
http://developers.sun.com/prodtech/javatools/jsenterprise/reference/docs/index.html
Screen shots vary slightly from one platform to another. Although almost all procedures use the interface of the Sun Java Studio Enterprise 6 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:
A UNIX® command might look like this:
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 Java Studio Enterprise 6 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 Java Studio Enterprise IDE and the Sun Java System Application Server, how to get the IDE and the application server to recognize each other and both communicating with a PointBase 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.
-A P P E N D I XAppendix C describes how to adapt the tutorial to create and run the application using an Oracle database.
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. |
||
Java Studio Enterprise documentation includes books delivered in Acrobat Reader (PDF) format, release notes, online help, and readme files for example applications.
The documents described in this section are available from the docs.sun.comSM web site and from the documentation page of the Sun Developer Resources portal at http://developers.sun.com/prodtech/javatools/jsenterprise/reference/docs/index.html.
The docs.sun.com web site (http://docs.sun.com) enables you to read, print, and buy Sun Microsystems manuals through the Internet.
Describes last-minute release changes and technical notes.
Describes how to install the Sun Java Studio Enterprise 6 integrated development environment (IDE) and associated servers on each supported platform and includes other pertinent information, such as system requirements, upgrade instructions, server information, command-line switches, database integration, and information on how to use the Update Center.
Describes the available code examples for Sun Java Studio Enterprise 6 software.
This series provides in-depth information on how to use various Sun Java Studio Enterprise 6 features to develop well-formed J2EE applications.
Describes how to build a web application as a J2EE web module using JSP pages, servlets, tag libraries, and supporting classes and files.
Describes how to assemble EJB modules and web modules into a J2EE application and how to deploy and run a J2EE application.
Describes how to build EJB components (session beans, message-driven beans, and entity beans with container-managed persistence or bean-managed persistence) using the Sun Java Studio Enterprise 6 EJB Builder wizard and other components of the IDE.
Describes how to use the Sun Java Studio Enterprise 6 IDE to build web services, to make web services available to others through a UDDI registry, and to generate web service clients from a local web service or a UDDI registry.
Describes how to use the JDBC productivity enhancement tools of the Sun Java Studio Enterprise 6 IDE, including how to use them to create a JDBC application.
Describes the various parts of the Sun Java Studio Enterprise 6 IDE and emphasizes the use of the visual tools for developing a Web Application Framework application.
Introduces the mechanics and techniques to build a web application using the Web Application Framework tools.
Provides the steps to create and use application components that can be assembled to develop an application using the Web Application Framework and explains how to deploy the application in most J2EE containers.
Introduces the Web Application Framework and what it is, how it works, and what sets it apart from other application frameworks.
Gives a brief introduction to the Web Application Framework tag library, as well as a comprehensive reference to the tags available within the library.
Describes the Web Application Framework component architecture and the process to design, create, and distribute new components.
Describes the components available in the Web Application Framework Library.
Sun Java Studio Enterprise 6 tutorials, mini-tutorials, and examples help you understand the features of the IDE. Each example or tutorial provides code samples that you can use or modify in developing more substantial applications. All examples and tutorials illustrate deployment with Sun Java System Application Server.
Completed examples are available in the AboutExamples directory under your Java Studio Enterprise user directory.
Mini-tutorials are available from the Tutorials and Code Camps page of the Sun Java Studio Enterprise 6 developers portal, at http://developers.sun.com/prodtech/javatools/jsenterprise/learning/tutorials/index.html.
Provides step-by-step instructions for building a simple J2EE web application.
Provides step-by-step instructions for building an application using EJB components and Web Services technology.
These documents are available from docs.sun.com. The documents, as well as zip files of the completed applications, are also available from the Tutorials and Code Camps page of the Sun Java Studio Enterprise 6 developers portal, at http://developers.sun.com/prodtech/javatools/jsenterprise/learning/tutorials/index.html.
Online help is available inside the Java Studio Enterprise IDE. You can open help by pressing the help key (F1 in Microsoft Windows and Linux environments, Help key in the Solaris environment), or by choosing Help Contents. Either action displays a list of help topics and a search facility.
The documentation is provided in accessible formats that are readable by assistive technologies for users with disabilities. You can find accessible versions of documentation as described in the following table.
HTML at http://docs.sun.com |
|
HTML at http://developers.sun.com/prodtech/javatools/jsenterprise/learning/tutorials/index.html |
|
HTML at http://docs.sun.com |
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 (817-5554-10) of your document in the subject line of your email.
Copyright © 2004, Sun Microsystems, Inc. All rights reserved.