Foreword. Preface. 1. Overview. Distributed Multitiered Applications. J2EE Components. J2EE Clients. Web Components.
Business Components. Enterprise Information System Tier. J2EE Containers. Container Services. Container Types. Packaging. Development Roles. J2EE Product Provider.
Tool Provider. Application Component Provider. Application Assembler. Application Deployer and Administrator. Reference Implementation Software. Database Access. J2EE APIs. Simplified Systems Integration.
Tools. 2. Getting Started. Setting Up. Getting the Example Code. Getting the Build Tool (ant). Checking the Environment Variables. Starting the J2EE Server.
Starting the deploytool. Creating the J2EE Application. Creating the Enterprise Bean. Coding the Enterprise Bean. Compiling the Source Files. Packaging the Enterprise Bean. Creating the J2EE Application Client. Coding the J2EE Application Client.
Compiling the Application Client. Packaging the J2EE Application Client. Specifying the Application Client's Enterprise Bean Reference. Creating the Web Client. Coding the Web Client. Compiling the Web Client. Packaging the Web Client. Specifying the Web Client's Enterprise Bean Reference.
Specifying the JNDI Names. Deploying the J2EE Application. Running the J2EE Application Client. Running the Web Client. Modifying the J2EE Application. Modifying a Class File. Adding a File. Modifying the Web Client.
Modifying a Deployment Setting. Common Problems and Their Solutions. Cannot Start the J2EE Server. Compilation Errors. Deployment Errors. J2EE Application Client Runtime Errors. Web Client Runtime Errors. Detecting Problems With the Verifier Tool.
Comparing Your EAR Files with Ours. When All Else Fails. 3. Enterprise Beans. What Is an Enterprise Bean? Benefits of Enterprise Beans. When to Use Enterprise Beans. Types of Enterprise Beans. What Is a Session Bean? State Management Modes.
When to Use Session Beans. What Is an Entity Bean? What Makes Entity Beans Different from Session Beans? Container-Managed Persistence. When to Use Entity Beans. What Is a Message-Driven Bean? What Makes Message-Driven Beans Different from Session and Entity Beans? When to Use Message-Driven Beans. Defining Client Access with Interfaces. Remote Access. Local Access. Local Interfaces and Container-Managed Relationships.
Deciding on Remote or Local Access. Performance and Access. Method Parameters and Access. The Contents of an Enterprise Bean. Naming Conventions for Enterprise Beans. The Life Cycles of Enterprise Beans. The Life Cycle of a Stateful Session Bean. The Life Cycle of a Stateless Session Bean.
The Life Cycle of an Entity Bean. The Life Cycle of a Message-Driven Bean. 4. A Session Bean Example. The CartEJB Example. Session Bean Class. Home Interface. Remote Interface.
Helper Classes. Running the CartEJB Example. Other Enterprise Bean Features. Accessing Environment Entries. Comparing Enterprise Beans. Passing an Enterprise Bean's Object Reference. 5. Bean-Managed Persistence Examples.
The SavingsAccountEJB Example. Entity Bean Class. Home Interface. Remote Interface. Running the SavingsAccountEJB Example. deploytool Tips for Entity Beans with Bean-Managed Persistence. Mapping Table Relationships for Bean-Managed Persistence. One-to-One Relationships.
One-to-Many Relationships. Many-to-Many Relationships. Primary Keys for Bean-Managed Persistence. The Primary Key Class.