Prev | Next
TOC | Index |
J2EE Doc Bundle Home
Revised: 05/02/00 |
Where to Find the Code Examples
Benefits of Middle-Tier Servers
J2EE Server
EJB Container
Web Container
Session Beans
Entity Beans
Comparing Session and Entity Beans
Java BeansTM Components and Enterprise Beans
Programming Restrictions for Enterprise Beans
Database Access
Contents of a J2EE Application
Development Phases of J2EE Applications
Coding the Remote Interface
Coding the Home Interface
Coding the Enterprise Bean Class
Compiling the Enterprise Bean's Source Code
Deploying the J2EE Application
Coding the Client
Compiling the Client's Code
Solutions to Common Problems
Modifying the J2EE Application
Session Bean Class
Home Interface
Remote Interface
Helper Classes
Stateful Session Beans
Stateless Session Beans
Choosing Between Stateful and Stateless Session Beans
The Life Cycle of a Session Bean
The Stateful Session Bean Life Cycle
The Stateless Session Bean Life Cycle
Passing a Session Bean's Object Reference
Characteristics of Entity Beans
Persistence
Shared Access
Primary Key
A Bean-Managed Persistence Example
Entity Bean Class
Home Interface
Remote Interface
Tips on Running the AccountEJB Example
A Container-Managed Persistence Example
Container-Managed Fields
Entity Bean Class
The Finder Methods
Table Creation
Tips on Running the ProductEJB Example
Creating a Primary Key Class
Getting the Primary Key
The Life Cycle of an Entity Bean
Passing an Entity Bean's Object Reference
How to Connect
When To Connect
Specifying the JNDI Name for Deployment
Specifying Database Users and Passwords
Container-Managed Transactions
Transaction Attributes
Rolling Back a Container-Managed Transaction
Synchronizing a Session Bean's Instance Variables
Methods Not Allowed in Container-Managed Transactions
JDBC Transactions
JTA Transactions
Returning Without Committing
Methods Not Allowed in Bean-Managed Transactions
Summary of Transaction Options
Stand-Alone JavaTM Applications
Accessing J2EE Services
Setting Up the Application for the J2EE Application Client
Creating the J2EE Application Client
Specifying the JNDI Name
Deploying the J2EE Application
Running the J2EE Application Client
Setting Up the Servlet's J2EE Application
Coding the Servlet
Compiling the Servlet
Coding the HTML File
Creating the Servlet's .war File
Specifying the Web Context Root
Specifying the JNDI Names
Deploying the Servlet's J2EE Application
Running the Servlet
Setting Up the JSP Component's J2EE Application
Writing the JSP File
Coding the JavaBeans Component
Compiling the JavaBeans Component
Creating the JSP Component's .war File
Specifying the Web Context Root
Specifying the JNDI Names
Deploying the JSP Component's J2EE Application
Running the JSP Component
Setting Up the ShipperApp Application
Creating the Stock EJB .jar File
Creating the Shipper EJB .jar File
Specifying the JNDI Names
Deploying and Running the J2EE Application
J2EE Users, Realms, and Groups
Client Authentication
Managing J2EE Users and Groups
Declaring Roles
Declaring Method Permissions
Mapping Roles to J2EE Users and Groups
J2EE Application Client
Web Browser Client
Getting the Caller's J2EE User
Determining the Caller's Role
Setting Up a Server Certificate
Mapping Table Relationships to Entity Beans
One-to-One Relationships
One-to-Many Relationships
Many-to-Many Relationships
Sending Email from an Enterprise Bean
Connecting to a URL in an Enterprise Bean
Accessing Enterprise Beans Through JSP Tag Libraries
Setting Up the ConverterJSPApp Application
Writing the JSP File
Writing the Tag Library Descriptor
Coding the Tag Handler Class
Coding the TagExtraInfo Class
Creating the Tag Library's .war File
Specifying the Web Context Root
Specifying the JNDI Names
Deploying the ConverterJSPApp Application
Running the ConverterJSPApp Application
Comparing the ConverterJSPApp and AccountJSPApp Applications
Starting and Stopping Cloudscape
Cloudscape Server Configuration
Cloudscape ij Tool
EJB .jar File
Web Component .war File
Application Client .jar File
J2EE Application .ear File
Command-Line Verifier
Stand-Alone GUI Verifier
TOC | Index