Enterprise
JavaBeans
Course
Length: 4 days, $119 per book
Explores the Enterprise
JavaBean (EJB) Component Architecture for building multi-tier
client/server applications. Java programmers will be able to write
and deploy reusable, distributed components and take advantage
of the services offered by the EJB infrastructure.
Audience: Java
programmers who wish to use Enterprise JavaBeans to develop distributed
intranet and internet applications.
Prerequisites:
Java Programming and some Java development experience. Familiarity
with JavaBeans, RMI and JDBC is recommended.
EJB and the J2EE Architecture
Evolution of Distributed Computing on the Web
The J2EE Solution
The Enterprise JavaBean
Roles in Enterprise JavaBeans Development
EJB Container and Application Server
Reference Implementation Services
Getting Started
Defining the Bean Class
Remote Interface
Writing Business Methods
Home Interface
Compiling
Creating the J2EE Application
Packaging the Enterprise Bean
Deploying the J2EE Application
The Client
Locating the Bean
Create an Enterprise Bean Instance
Invoking the Bean's Methods
Compiling the Client
Deploying the Client
Running the Client
The javax.ejb Package
The Remote Interface
The Home Interface
The Local Interface
The Local Interface Usage
Container Objects
SessionBean Interface
EntityBean Interface
MessageDrivenBean Interface
EJB Exceptions
EJB Context
Three Contexts
Other Interfaces
Session Beans
A Session Bean
What About State?
Stateless Session Beans
Life Cycle of a Stateless Session Bean
Stateful Session Beans
Life Cycle of a Stateful Session Bean
HttpSessions and Cookies
Deployment
EJB Deployment Process
Anatomy of the Deployment Descriptor
Structural Data
Assembly
Environment Entities
Compile
Bundling
EJB Clients
Client Types
Web Components
The JNDI API
Lookup with JNDI
PortableRemoteObject.narrow()
Using the Bean
Entity Beans
An Entity Bean
Persistence Models
EntityBean Home Interface
Finder Methods
Primary Key
The Component Interface
Session Bean Clients
Life Cycle of an Entity Bean
Bean-Managed Persistence
Why
BMP?
Create
Remove
Load
Store
EjbFindByPrimaryKey and other Finder
Methods
DBObjects
Container-Managed Persistence
Why CMP?
Two Layers of Responsibility
Coding Conventions in the Abstract Entity
Bean
Deploying a CMP Bean
ejb-jar.xml
Proprietary Deployment Descriptors
Container-Managed Relationships
EJBQL: Finders in CMP
Limitations of CMP
Transactions
Transactions in EJB
Container-Managed Transactions
Transaction Support Attributes
Bean-Managed Transactions
SessionSynchronization
EJB Security
Security Issues
Authentication
Deploying a Secure Bean
Authorization
Container-Managed Security
Security and Deployment Descriptor
Bean-Managed Security
Bean-Managed Security and Deployment Descriptor
JMS
Introduction to JMS Concepts
What is JMS?
Parent Interfaces and GMD
JMS Definitions
Message Object
Multi-Threading and JMS Exception
PTP Domain and Interfaces
Pub/Sub Domain and Interfaces
JMS Server and Destination
Creating the Client
Handling the Message
Producing the Message
Message-Driven
Beans
Message-Driven Beans
Asynchronous Processing
Comparing MDBs
MDB Interfaces
Deploying MDBs
MDB Deployment Descriptor Elements
Appendix A - Supporting Technologies
JDBC
XML
RMI
Servlets
Database Transaction Isolation Levels
The JSP Solution