This tutorial introduces you to the APIs, tools, and services provided
in the JavaTM 2 Enterprise Edition
(J2EETM) Reference Implementation.
You can get the J2EE
Reference Implementation as a
free
download for demonstrations, prototyping, and educational use.
To support these uses the J2EE Reference Implementation
comes with J2EE development and deployment tools,
Java WebServerTM, Cloudscape database,
Java Software application server, Extensible Markup Language (XML) support,
and the J2EE APIs.
Note:
Submit comments and suggestions to
jdcee@sun.com.
Course Outline
This is an outline of the topics covered in the PDF and HTML
versions available above.
Lesson 1:
A Simple Session Bean
Lesson 1 Zip file contains example
- Example Thin-Client Multitiered Application
- J2EE Software and Setup
- J2EE Application Components
- Create the HTML File
- Create the Servlet
- Create the Session Bean
- Compile the Session Bean and Servlet
- Start the J2EE Application Server
- Start the J2EE Deployer Tool
- Assemble the J2EE Application
- Specify JNDI name and Root Context.
- Verify and Deploy the J2EE Application
- Run the J2EE Application
Lesson 2:
A Simple Entity Bean
Lesson 2 Zip file contains example
- Create the Entity Bean
- Change the Servlet
- Compile
- Start the Platform and Tools
- Assemble and Deploy
- Uninstall the Application
- Delete and Create New WAR file
- Create EJB JAR for Entity Bean
- Run the J2EE Application
Lesson 3: Enterprise Bean Communications
Lesson 3 Zip file contains example
- Change the Session Bean
- Change the Servlet
- Compile
- Start the Platform and Tools
- Assemble and Deploy
- Run the J2EE Application
Lesson 4: JavaServerTM Pages
Lesson 4 Zip file contains example
- Create the JavaServer Page
- Start the Platform and Tools
- Remove the WAR File
- Assemble new WAR File
- Verify and Deploy the J2EE Application
- Run the J2EE Application
- More Information
Lesson 5: Adding JavaBeansTM
Technology to the Mix.
Lesson 5 Zip file contains example
- About the Example
- Create bonus.jsp
- Create the JavaBeans Class
- Bean Properties
- Remove the WAR File
- Assemble New WAR FIle
- Verify and Deploy the J2EE Application
- Run the J2EE Application
- More Information
Lesson 6: Extensible Markup Langauge (XML)
Lesson 6 Zip file contains example
- Change the JavaBean Class
- The APIs
- Assemble, Verify, Deploy, and Run
- More Information
Lesson 7: JDBCTM Technology
and Bean-Managed Persistence
Lesson 7 Zip file contains example
- Bean Lifecycle
- Change the BonusBean Code
- Create the Database Table
- Uninstall J2EE Application
- Delete and Create EJB JAR File
- Verify and Deploy the J2EE Application
- Run the J2EE Application
- More Information
Related Information
Other J2EE-related topics are listed here. Some are not yet
available in the J2EE platform, but you can find information
on those that are currently available in the documents noted.
Managing Transactions
The Java 2, Enterprise Edition, Developer's Guide has a good section on
Transactions.
Mail and Messaging
The Java Message Service API is not currently available.
Chapter 10 of Designing Enterprise Applications also called
J2EE Blueprints
has an example of the email API.
Security
The Java 2, Enterprise Edition, Developer's Guide has a good section on
Security.
RMI-JRMP and RMI-IIOP
JRMP is the Java technology-specific RMI protocol for looking up and referencing remote objects. Because
of J2EE security restrictions, only application clients can create and reference an RMI object, but all
J2EE application component types can be clients of (looked up and referenced by) RMI objects. J2EE
application component types are application clients, applets, servlets/JSP pages, and Enterprise
JavaBeans components.
RMI over Internet Inter-ORB Protocol (IIOP) lets RMI code reference and look up an object using the CORBA
CosNaming service. This gives you greater interoperability between architectures with little change to
your existing RMI code. Enterprise JavaBean code is based on RMI, but currently the specification does
not require support for being accessed by way of IIOP. This will change in a future version of the
specification.
Monica Pawlan,
a staff writer for the Java Developer
ConnectionSM (JDC), is
author of Essentials of the Java Programming Language: A Hands-On
Guide (Addison-Wesley, 2000), and co-author of Advanced Programming
for the Java 2 Platform (Addison-Wesley, 2000).
Reader Feedback
Tell us what you think of this article.
[TOP]
|