|
Home TOC Index |
|
Search
Feedback |
Preface
The Java Tutorial has been an indispensable resource for many programmers learning the Java programming language. This tutorial hopes to serve the same role for developers encountering the Java
2 Platform, Enterprise Edition (J2EE
) for the first time. It follows an example-oriented focus similar to the Java Tutorial.
- Who Should Use This Tutorial
- About the Examples
- Related Information
- How to Print This Tutorial
- Typographical Conventions
- Acknowledgments
Who Should Use This Tutorial
This tutorial is intended for programmers interested in developing and deploying J2EE applications. It covers the main component technologies comprising the J2EE platform and describes how to develop J2EE components and deploy them on the J2EE Software Development Kit (SDK).
This tutorial is not intended for J2EE server or tool vendors. It does not explain how to implement the J2EE architecture, nor does it explain the internals of the J2EE SDK. The J2EE specifications describe the J2EE architecture and can be downloaded from
http://java.sun.com/j2ee/docs.html#specsAbout the Examples
This tutorial includes many complete, working examples. See Examples for a list of the examples and the chapters where they appear.
Prerequisites for the Examples
To understand the examples, you will need a good knowledge of the Java programming language, SQL, and relational database concepts. The topics in the Java Tutorial listed in Table 1 are particularly relevant:
Table 1 Prerequisite Topics Topic
Java Tutorial
JDBC
http://java.sun.com/docs/books/tutorial/jdbc
Threads
http://java.sun.com/docs/books/tutorial/essential/threads
JavaBeans
http://java.sun.com/docs/books/tutorial/javabeans
Security
http://java.sun.com/docs/books/tutorial/security1.2
Downloading the Examples
If you are viewing this online and you want to build and run the examples, you need to download the tutorial bundle from
http://java.sun.com/j2ee/download.html#tutorialOnce you have installed the bundle, the example source code is in the
j2eetutorial/examples/srcdirectory, with subdirectoriesejbfor enterprise bean technology examples,webfor Web technology examples, andconnectorfor connector technology examples. For most of the examples, the bundle also includes J2EE application Enterprise Archive EAR files, which are located in thej2eetutorial/examples/earsdirectory.How to Build and Run the Examples
This tutorial documents the J2EE SDK version 1.3. To build, deploy, and run the examples you need a copy of the J2EE SDK 1.3 and the Java 2 Platform, Standard Edition (J2SE
) SDK 1.3.1 (earlier versions were called JDK). You can download the J2EE SDK from
http://java.sun.com/j2ee/download.html#sdkhttp://java.sun.com/j2se/1.3/The examples are distributed with a configuration file for version 1.3 of
anta portable make tool. Theantutility is hosted by the Jakarta project at the Apache Software Foundation. You can downloadantfromhttp://jakarta.apache.org/builds/jakarta-ant/release/v1.3/binTo build the tutorial examples:
- Download and install the J2SE SDK 1.3.1, J2EE SDK 1.3, and
ant.- The installation instructions for the J2SE SDK, J2EE SDK, and
antexplain how to set the required environment variables. Verify that the environment variables have been set to the values noted in the Table 1.- Go to the
j2eetutorial/examplesdirectory.- Execute
anttarget. For example, to build all the examples, executeant all; to build the Web layer examples, executeant web. The build process deposits the output into the directoryj2eetutorial/examples/build.Related Information
This tutorial provides a concise overview of how to use the central component technologies in the J2EE platform. For more information about these technologies, see the Web sites listed in Table 2
Table 2 Information Sources Component Technology
Web Site
Enterprise JavaBeans (EJB
)
http://java.sun.com/products/ejb
Java Servlet
http://java.sun.com/products/servlets
JavaServer Pages (JSP
)
http://java.sun.com/products/jsp
The J2EE platform includes a wide variety of APIs that this tutorial only briefly touches on. Some of these technologies have their own tutorials, which are listed in Table 3.
Table 3 Other Tutorials API
Tutorial
Java Message Service (JMS)
http://java.sun.com/products/jms/tutorial/
Java Naming and Directory Interface (JNDI)
http://java.sun.com/products/jndi/tutorial/
Java API for XML Processing (JAXP)
http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/index.html
For complete information on these topics, see the Web sites listed in Table 4.
Table 4 Other Web sites API
Web Site
J2EE Connector
http://java.sun.com/j2ee/connector
JAXP
http://java.sun.com/products/jaxp
JavaMail
http://java.sun.com/products/javamail
JMS
http://java.sun.com/products/jms
JNDI
http://java.sun.com/products/jndi
JDBC
http://java.sun.com/products/jdbc
Once you have become familiar with the J2EE technologies described in this tutorial, you may be interested in guidelines for architecting J2EE applications. The J2EE BluePrints illustrate best practices for developing and deploying J2EE applications. You can obtain the J2EE BluePrints from
http://java.sun.com/blueprintsHow to Print This Tutorial
To print this tutorial, follow these steps:
- Ensure that Adobe Acrobat Reader is installed on your system.
- Download the PDF version of this book from
http://java.sun.com/j2ee/download.html#tutorial.- Click the printer icon in Adobe Acrobat Reader.
Typographical Conventions
Table 5 lists the typographical conventions used in this tutorial.
Menu selections indicated with the right-arrow character
, for example, First
Second, should be interpreted as: select the First menu, then choose Second from the First submenu.
Acknowledgments
The J2EE tutorial team would like to thank the J2EE SDK team for their technical advice.
We are extremely grateful to the many internal and external reviewers who provided feedback on the tutorial. This helped us to improve the presentation, correct errors, and eliminate bugs.
We would also like to thank our manager, Jim Inscore, for his support and steadying influence.
The chapters on Web components use an example and some material that first appeared in the servlet trail of the Java Tutorial. The chapters on custom tags and the Duke's Bank application use a template tag library that first appeared in the J2EE BluePrints.
|
Home TOC Index |
|
Search
Feedback |