J2EE_HOME E:\j2sdkee1.3.1
JAVA_HOME E:\j2sdk1.4.1_02
ANT_HOME E:\j2sdkee1.3.1\jakarta-ant-1.3
CLASSPATH E:\j2sdk1.4.1_02\jre\lib;E:\j2sdk1.4.1_02\lib;E:\jdkTest;E:\j2sdkee1.3.1\lib\j2ee.jar
Path E:\j2sdk1.4.1_02\bin;E:\j2sdkee1.3.1\bin;E:\j2sdkee1.3.1\jakarta-ant-1.3\bin
注:e:\jdktest 是工作目录( 用户源码所在目录)去http://java.sun.com/docs/books/tutorial/index.html 下载J2EE Tutorial吧The J2EETM Tutorial
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 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#specs
About 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 P-1 are particularly relevant.
Table P-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#tutorial
Once you have installed the bundle, the example source code is in the j2eetutorial/examples/src directory, with subdirectories ejb for enterprise bean technology examples, web for Web technology examples, and connector for connector technology examples. For most of the examples, the bundle also includes J2EE application Enterprise Archive (EAR) files, which are located in the j2eetutorial/examples/ears directory. 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#sdk
and the J2SE 1.3.1 from http://java.sun.com/j2se/1.3/
The examples are distributed with a configuration file for version 1.3 of ant, a portable make tool. The ant utility is hosted by the Jakarta project at the Apache Software Foundation. You can download ant from http://jakarta.apache.org/builds/jakarta-ant/release/v1.3/bin
To build the tutorial examples, follow these steps: 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 ant explain how to set the required environment variables. Verify that the environment variables have been set to the values noted in the Table P-2.Table P-2 Settings for Environment Variables Environment Variable
Value
JAVA_HOME
The location of the J2SE SDK installation.
J2EE_HOME
The location of the J2EE SDK installation.
ANT_HOME
The location of the ant installation.
PATH
Should include the bin directories of the J2EE SDK, J2SE SDK, and ant installations.
Go to the j2eetutorial/examples directory.
Execute ant target. For example, to build all the examples, execute ant all; to build the Web layer examples, execute ant web. The build process deposits the output into the directory j2eetutorial/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 P-3.
Table P-3 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 P-4.
Table P-4 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 P-5.
Table P-5 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 Java BluePrints illustrate best practices for developing and deploying J2EE applications. You can obtain the Java BluePrints from http://java.sun.com/blueprints
How 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 P-6 lists the typographical conventions used in this tutorial.
Table P-6 Typographical Conventions Font Style
Uses
Italic
Emphasis, titles, first occurrence of terms
Monospace
URLs, code examples, file names, command names, programming language keywords
Italic monospace
Programming variables, variable file names
Menu selections indicated with the right-arrow character , for example, FirstSecond, 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 Java BluePrints. Home
TOC
Index Search
Feedback
JAVA_HOME E:\j2sdk1.4.1_02
ANT_HOME E:\j2sdkee1.3.1\jakarta-ant-1.3
CLASSPATH E:\j2sdk1.4.1_02\jre\lib;E:\j2sdk1.4.1_02\lib;E:\jdkTest;E:\j2sdkee1.3.1\lib\j2ee.jar
Path E:\j2sdk1.4.1_02\bin;E:\j2sdkee1.3.1\bin;E:\j2sdkee1.3.1\jakarta-ant-1.3\bin
注:e:\jdktest 是工作目录( 用户源码所在目录)去http://java.sun.com/docs/books/tutorial/index.html 下载J2EE Tutorial吧The J2EETM Tutorial
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 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#specs
About 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 P-1 are particularly relevant.
Table P-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#tutorial
Once you have installed the bundle, the example source code is in the j2eetutorial/examples/src directory, with subdirectories ejb for enterprise bean technology examples, web for Web technology examples, and connector for connector technology examples. For most of the examples, the bundle also includes J2EE application Enterprise Archive (EAR) files, which are located in the j2eetutorial/examples/ears directory. 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#sdk
and the J2SE 1.3.1 from http://java.sun.com/j2se/1.3/
The examples are distributed with a configuration file for version 1.3 of ant, a portable make tool. The ant utility is hosted by the Jakarta project at the Apache Software Foundation. You can download ant from http://jakarta.apache.org/builds/jakarta-ant/release/v1.3/bin
To build the tutorial examples, follow these steps: 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 ant explain how to set the required environment variables. Verify that the environment variables have been set to the values noted in the Table P-2.Table P-2 Settings for Environment Variables Environment Variable
Value
JAVA_HOME
The location of the J2SE SDK installation.
J2EE_HOME
The location of the J2EE SDK installation.
ANT_HOME
The location of the ant installation.
PATH
Should include the bin directories of the J2EE SDK, J2SE SDK, and ant installations.
Go to the j2eetutorial/examples directory.
Execute ant target. For example, to build all the examples, execute ant all; to build the Web layer examples, execute ant web. The build process deposits the output into the directory j2eetutorial/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 P-3.
Table P-3 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 P-4.
Table P-4 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 P-5.
Table P-5 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 Java BluePrints illustrate best practices for developing and deploying J2EE applications. You can obtain the Java BluePrints from http://java.sun.com/blueprints
How 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 P-6 lists the typographical conventions used in this tutorial.
Table P-6 Typographical Conventions Font Style
Uses
Italic
Emphasis, titles, first occurrence of terms
Monospace
URLs, code examples, file names, command names, programming language keywords
Italic monospace
Programming variables, variable file names
Menu selections indicated with the right-arrow character , for example, FirstSecond, 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 Java BluePrints. Home
TOC
Index Search
Feedback
b/s
jb+weblogic+oracle ; 他的配置你较简单,把oracle/lib/jdbc/class111,class12.jar在jb的config jkd里add一下就行
还有weblog的配置
配置连接池
c/s
一样