Preface
This tutorial is a guide to developing enterprise applications for the JavaTM Platform, Enterprise Edition 6 (Java EE 6).
Enterprise Server v3 Preview is
developed through the GlassFishTM project open-source
community at https://glassfish.dev.java.net/.
The GlassFish project provides a structured process for developing the Enterprise Server platform
that makes the new features of the Java EE platform available
faster, while maintaining the most important feature of Java EE: compatibility.
It enables Java developers to access the Enterprise Server source code and to
contribute to the development of the Enterprise Server. The GlassFish project
is designed to encourage communication between Sun engineers and the community.
This preface contains information about and conventions for the entire Sun GlassFish Enterprise Server documentation
set.
Before You Read This Book
Before proceeding with this tutorial, you should have a good knowledge
of the Java programming language. A good way to get to that point is to work
through The Java Tutorial, Fourth Edition, Sharon Zakhour et al. (Addison-Wesley, 2006). You
should also be familiar with the Java DataBase Connectivity
(JDBCTM) and relational database features described in JDBC API Tutorial and Reference, Third Edition, Maydene Fisher
et al. (Addison-Wesley, 2003).
Enterprise Server Documentation Set
The Enterprise Server documentation set describes deployment
planning and system installation. The Uniform Resource Locator (URL)
for Enterprise Server documentation is http://docs.sun.com/coll/1343.9. For an introduction
to Enterprise Server, refer to the books in the order in which they are
listed in the following table.
Table P–1 Books in the Enterprise Server Documentation
Set
|
Book Title
|
Description
|
|
Release
Notes
|
Provides late-breaking information about the software and the documentation.
Includes a comprehensive, table-based summary of the supported hardware, operating
system, Java Development Kit (JDKTM),
and database drivers.
|
|
Quick
Start Guide
|
Explains how to get started with the Enterprise Server product.
|
|
Installation
Guide
|
Explains how to install the software and its components.
|
|
Administration
Guide
|
Explains how to configure, monitor, and manage Enterprise Server subsystems
and components from the command line by using the asadmin(1M) utility.
Instructions for performing these tasks from the Administration Console are provided
in the Administration Console online help.
|
|
Application
Deployment Guide
|
Explains how to assemble and deploy applications to the Enterprise Server and
provides information about deployment descriptors.
|
|
Your
First Cup: An Introduction to the Java EE Platform
|
Provides a short tutorial for beginning Java EE programmers that explains
the entire process for developing a simple enterprise application. The sample
application is a web application that consists of a component that is based
on the Enterprise JavaBeansTM specification, a JAX-RS
web service, and a JavaServerTM Faces component for
the web front end.
|
|
Application
Development Guide
|
Explains how to create and implement Java Platform,
Enterprise Edition (Java EE platform) applications
that are intended to run on the Enterprise Server. These applications follow the
open Java standards model for Java EE components and APIs. This guide provides
information about developer tools, security, and debugging.
|
|
Add-On Component Development Guide
|
Explains how to use published interfaces of Enterprise Server to develop
add-on components for Enterprise Server. This document explains how to perform only those tasks that ensure that the add-on component is suitable
for Enterprise Server.
|
|
Scripting
Framework Guide
|
Explains how to develop scripting applications in languages such as
Ruby on Rails and Groovy on Grails for deployment to Enterprise Server.
|
|
Troubleshooting
Guide
|
Describes common problems that you might encounter when using Enterprise Server and
how to solve them.
|
|
Reference Manual
|
Provides reference information in man page format for Enterprise Server administration
commands, utility commands, and related concepts.
|
|
Java EE
6 Tutorial, Volume I
|
Explains how to use Java EE 6 platform technologies and APIs to develop
Java EE applications.
|
|
Message
Queue Release Notes
|
Describes new features, compatibility issues, and existing bugs for Sun GlassFish Message
Queue.
|
|
Message
Queue Developer's Guide for JMX Clients
|
Describes the application programming interface in Sun GlassFish Message
Queue for programmatically configuring and monitoring Message Queue resources
in conformance with the Java Management Extensions (JMX).
|
|
System Virtualization Support in Sun Java System Products
|
Summarizes Sun support for Sun Java System products when used in conjunction
with system virtualization products and features.
|
Related Documentation
A JavadocTM tool reference for packages that are
provided with the Enterprise Server is located at http://java.sun.com/javaee/6/docs/api/.
Additionally, the following resources might be useful:
For information about creating enterprise applications in the NetBeansTM Integrated Development Environment (IDE), see http://www.netbeans.org/kb/60/index.html.
For information about the Java DB for use with the Enterprise Server, see http://developers.sun.com/javadb/.
The sample
applications demonstrate a broad range of Java EE technologies.
The samples are
bundled with the Java EE Software Development Kit (SDK).
Default Paths and File Names
The following table describes the default paths and file names that
are used in this book.
Table P–2 Default Paths and File Names
|
Placeholder
|
Description
|
Default Value
|
|
as-install
|
Represents the base installation directory for the Enterprise Server or
the Software Development Kit (SDK) of which the Enterprise Server is a part.
|
SolarisTM and Linux installations:
user’s-home-directory/glassfishv3
Windows installations:
SystemDrive:\glassfishv3
|
|
tut-install
|
Represents the base installation directory for the Java EE Tutorial.
|
as-install/glassfish/docs/javaee-tutorial
|
|
domain-root-dir
|
Represents the directory containing all Enterprise Server domains.
|
All installations:
as-install/glassfish/domains/
|
|
domain-dir
|
Represents the directory for a domain.
In configuration files, you might see domain-dir represented as follows:
${com.sun.aas.instanceRoot}
|
domain-root-dir/domain-dir
|
Typographic Conventions
The following table describes the typographic changes that are used
in this book.
Table P–3 Typographic Conventions
|
Typeface
|
Meaning
|
Example
|
|
AaBbCc123
|
The names of commands, files, and directories, and onscreen computer
output
|
Edit your .login file.
Use ls -a to list all files.
machine_name% you have mail.
|
|
AaBbCc123
|
What you type, contrasted with onscreen computer output
|
machine_name% su
Password:
|
|
AaBbCc123
|
A placeholder to be replaced with a real name or value
|
The command to remove a file is rm filename.
|
|
AaBbCc123
|
Book titles, new terms, and terms to be emphasized (note that some emphasized
items appear bold online)
|
Read Chapter 6 in the User's Guide.
A cache is a copy that is stored locally.
Do not save the file.
|
Symbol Conventions
The following table explains symbols that might be used in this book.
Table P–4 Symbol Conventions
|
Symbol
|
Description
|
Example
|
Meaning
|
|
[ ]
|
Contains optional arguments and command options.
|
ls [-l]
|
The -l option is not required.
|
|
{ | }
|
Contains a set of choices for a required command option.
|
-d {y|n}
|
The -d option requires that you use either the y argument or the n argument.
|
|
${ }
|
Indicates a variable reference.
|
${com.sun.javaRoot}
|
References the value of the com.sun.javaRoot variable.
|
|
-
|
Joins simultaneous multiple keystrokes.
|
Control-A
|
Press the Control key while you press the A key.
|
|
+
|
Joins consecutive multiple keystrokes.
|
Ctrl+A+N
|
Press the Control key, release it, and then press the subsequent keys.
|
|
->
|
Indicates menu item selection in a graphical user interface.
|
File -> New -> Templates
|
From the File menu, choose New. From the New submenu, choose Templates.
|
Documentation, Support, and Training
The Sun web site provides information about the following additional
resources: