JVJB1 - Introduction to Enterprise JavaBeans
| Categories |
Programming Training, Internet Training, Java Training |
| Duration |
2 days (14 hours) |
| Pre-requisites |
JV1 - Java Programming and JV2 - Advanced Java Programming, or equivalent Java development experience are required. Some experience with distributed systems development,
especially object-based systems such as Java RMI, CORBA, or COM. ome knowledge of JDBC is helpful in understanding the EJB persistence model. Understanding of XML is a plus but is not needed.
|
|
|
|
| Courseware |
JVJB1-OBJ-01 (188 pages) |
| Price |
$790 |
| Notes |
EJB is at the heart of the Java Enterprise platform, and the use of EJB application servers is the backbone of large-scale distributed systems. The focus for this course is on end-to-end connectivity, and follows a path roughly from the data layer to the presentation layer. The J2EE 1.4 reference implementation is used for all demo and lab work, and we emphasize portable EJB 2.1 code.
|
This course offers the Java programmer a grounding in the Enterprise JavaBeans (EJB) architecture and the skills to develop simple EJB
applications. We consider the advantages of the application server architecture transaction control, security, persistence, scalability through pooling
and clustering and study the development process for entity and session beans in depth. After completion of this course, students will have and understanding of the role of Enterprise JavaBeans in enterprise-level systems development, and its relationship to other J2EE technologies such as JSP, servlets, JMS, CORBA, and XML; the EJB architecture: the role of the EJB container in mediating contact between the client and the bean, transaction control, authorization control, and the importance of object pooling; the development cycle for EJBs: Java source code and compilation, XML deployment descriptors, EJB compilation and deployment, and use by an application server; the role of entity beans, their lifecycle and interactions with the container; BMP and CMP entity beans and the importance of each of the entity-bean methods in assisting the container in pooling; the role of session beans, their lifecycle and interactions with the container; stateless and stateful session beans and passivation/activation cycles and the bean context
interfaces that assist with persistence code and to correctly establish bean-to-bean communication.
The EJB Architecture
EJB and the Java Enterprise Platform
EJB and CORBA
EJB Costs and Benefits
What is an EJB?
Entity, Session, and Message-Driven Beans
EJB Roles
The EJB Container
The Home and EJB Objects
EJB Development
Remote Interface
Home Interface
Bean Class
Remote, Local, and Web-Service Component Interfaces
Multiple Maintenance Points
Using JNDI in EJB
Entity Beans: Bean-Managed Persistence
Persistence Mechanism
Instance versus Incarnation – Similarities to the CORBA PSS
EntityBean Interface and Responsibilities
Entity Bean Interactions, Lifecycle and State Transitions
Primary Keys
EntityContext Interface and Discovering the Primary Key
Creation and Removal
Load and Store
Finder Methods
Eager vs. Lazy Persistence
Entity Beans: Container-Managed Persistence
Two Contracts for Persistence
Declaring a Data Source
Declaring Persistent Fields
Implementing Finder Methods
What the Container Does
1.1 Architecture
2.0 Architecture
CMP Limitations
Stateless Session Beans
Session Beans and the Presentation Layer
Stateful vs. Stateless Sessions
Stateful Session Bean Interactions, Lifecycle and State Transitions
Stateless Session Bean Interactions, Lifecycle and State Transitions
Finding Entity Beans
Passing Value Objects
Stateful Session Beans
Stateful Session Beans
Object Pooling and Passivation/Activation
Activation and Passivation
Choosing Between Stateful and Stateless
Appendix A. Learning Resources