Avitek Medical Records Application (MedRec) and Tutorials
EJB Examples in the WebLogic Server Distribution
Additional EJB Examples Available for Download
Session EJBs Implement Business Logic
Entity EJBs Maintain Persistent Data
Message-Driven Beans Implement Loosely Coupled Business Logic
What Makes up an EJB?
The EJB Container
EJB Deployment Descriptors
EJB Communications
Performance-Enhancing Features for WebLogic Server EJBs
CMP Beans Increase Developer Productivity
Reliability and Availability Features
Session Beans
Entity Beans
Message-Driven Beans
Use Container-Managed Persistence (CMP) for Productivity and Portability
Use Bean-Managed Persistence (BMP) Only When Necessary
Understanding Transaction Demarcation Strategies and Performance
Transaction Isolation: A Performance vs. Data Consistency Choice
Create a Source Directory
Create EJB Classes and Interfaces
Compile Java Source
Generate Deployment Descriptors
Edit Deployment Descriptors
Generate EJB Wrapper Classes, and Stub and Skeleton Files
Package
Deploy
Solving Problems During Development
WebLogic Workshop
Administration Console
javac
EJBGen
WebLogic Builder
DDInit
WebLogic Server Ant Utilities
weblogic.Deployer
appc
DDConverter
Comparison of EJB Tool Features
Pooling for Stateless Session EJBs
Caching for Stateful Session EJBs
Stateful Session EJB Creation
Stateful Session EJB Passivation
Concurrent Access to Stateful Session Beans
Choosing Between Stateless and Stateful Beans
Choosing the Optimal Free Pool Setting for Stateless Session Beans
Specifying Primary Keys and Primary Key Classes
Guidelines for Specifying an Entity Bean's Primary Key
Automatically Generating Primary Keys
Specifying Relationship Cardinality in ejb-jar.xml
Relationship Directionality
Using Cascade Delete for Entities in CMRs
Pooling for Entity EJBs
Caching for Entity EJBs
Removing Beans from Cache
Entity EJB Lifecycle Transitions
Controlling Entity Caching
Container-Managed Relationship Elements
Primary Key Elements
Co-Location and JMS Destination Distribution
Non-Distributed Queues versus Non-Distributed Topics
Ensuring Message Receipt Order
Message Receipt, Acknowledgement and Redelivery
Message-Driven Bean Migratable Service
Using the Message-Driven Bean Context
Configuring Message-Driven Beans for Foreign (Non-BEA)
JMS Providers
WebLogic-Specific Configurable Behaviors for MDBs
Configuring Transaction Management Strategy for an MDB
Configuring an MDB to Listen on a JMS Distributed Destination
Reconnecting to a JMS Destination
Configuring a Security Identity for a Message-Driven Bean
Deploy EJBs as Part of an Enterprise Application
Deploy EJBs that Call Each Other in the Same Application
Deploy Homogeneously to a Cluster
Redeploying an EJB
Redeploying an Individual EJB Implementation Class
Disabling EJB Deployment Warning Messages
Function
EJBGen Distribution and Examples
Invoking EJBGen
Using Key EJBGen Features
A Sample Bean File Annotated with EJBGen Tags
Mapping an Entity Bean to Several Tables with EJBGen
Specifying Relationship Caching with EJBGen Tags
Specifying Relationships with EJBGen Tags
upper and lower Functions
Using ORDERBY
Using Subqueries
Using Aggregate Functions
Using Queries that Return ResultSets
Using Oracle SELECT HINTS
Visual Indicator of Error in Query
Multiple Errors Reported after a Single Compilation
Advantages of Using appc
appc Syntax
Designating Alternative Deployment Descriptors
appc Options
appc and EJBs
Advantages of Using ejbc
ejbc Syntax
ejbc Arguments
ejbc Options
Finder Signature
finder-list Stanza
finder-query Element
WLQL Syntax
WLQL Operators
WLQL Operands
Examples of WLQL Expressions
caching-descriptor
persistence-descriptor
clustering-descriptor
transaction-descriptor
reference-descriptor
transaction-isolation
security-role-assignment
RDBMS Definition Elements
EJB Field-Mapping Elements
Finder Elements