Subscribe to Newsletter

Print

EJB 2 (Enterprise Java Beans) Training Course


(This course is offered only on-demand to a private batch and can be customized as per the business requirements)

Overview

The Enterprise JavaBeans EJB 2 training course has been specially designed for professionals looking to build large-scale, scalable, robust, secure, component-based, high-performance, distributed and transactional systems using the EJB 2.1 specification and deploying it as a J2EE application. You will learn the concepts and architecture of Entity Bean, Session Beans, Message-Driven beans. You will learn about EJB design patterns and best practices. You will also learn about modeling the entity-relationships from the enterprise database schema and enforcing those relationships in the EJB component framework using Container-Managed relationships. These concepts are further reinforced through the use of well-crafted exercises at appropriate points throughout the course. For this course, we support the following application servers and tools.

  • WebSphere Application Server
  • WebLogic
  • Oracle
  • JBoss
And the following IDEs
  • Rational Application Developer (RAD)
  • Eclipse

Objectives

The Enterprise JavaBeans EJB 2 training course aims to teach a set of advanced skills necessary to implement robust, scalable, reusable enterprise applications using the EJB 2.1 specification. This course also provides a comprehensive coverage of issues in the EJB architecture and its supporting APIs. At the end of EJB 2 training course, the participants will be able to:

  • Develop robust and industrial-strength applications using EJB 2.1
  • Package the application to deploy it on a J2EE-compliant server
  • Master the EJB architecture
  • Master the EJB APIs
  • Build Session beans (stateless and stateful)
  • Build container-managed persistence (CMP) Entity beans
  • Build bean-managed persistence (BMP) Entity beans
  • Build Message-Driven beans
  • Use the timer service
  • Use container-managed relationships (CMR) to model relationships between entity beans
  • Use the EJBQL query language to implement custom finders and Ejb Select methods
  • Master the EJB transactional model
  • Master the EJB security model

Suggested Audience

  • Enterprise Java Developers
  • System Designers and Architects

Duration - 5 Days

Prerequisites - Knowledge of Java is required

Syllabus

1. Enterprise JavaBeans Architecture
  • Why Enterprise JavaBeans (EJB)
  • EJB Design Goals
  • EJB Fundamentals
  • Proxy Pattern
  • Enterprise JavaBeans Workflow
  • How do Enterprise JavaBeans Work
  • EJB Roles
2. Remote vs. Local EJB
  • Remote home and component interface definitions
  • Local home and component interface definitions
  • EJB Context
3. Developing Session Beans
  • Defining Stateless and Stateful Session Beans
  • EJB Container and bean pool management
  • Lifecycle of Stateless and Stateful Session Beans
  • Session Beans guidelines
4. Developing Entity Beans
  • Entity Beans concepts
  • Entity Bean and primary key
  • Entity Bean's home and component interface
  • Entity bean's lifecycle
  • Container-Managed Persistence (CMP)
  • A complete CMP example
5. Developing EJB Applications
  • Enterprise Bean's Environment
  • Service Locator Pattern
  • Data Transfer Object Pattern
  • Session Facade Pattern
6. Container-Managed Relationships
  • Types of relationship
  • Defining relationships
  • Container-managed relationship (CMR) field
  • Relationship and assignment semantics
  • Deployment descriptors for CMR
  • A complete CMR example
7. EJB Query Language
  • Overview of EJB QL
  • Abstract schema and query domains
  • Select clause
  • From clause
  • Where clause
8. Advanced CMP 2.0 Topics
  • Ejb Select Methods
  • Home Methods
9. Developing BMP Entity Beans
  • Overview of Bean Manager Persistence
  • Lifecycle of BMP beans
  • Implementing BMP lifecycle methods
  • Data Access Object (DAO) pattern
  • Abstract factory for DAOs
  • Using Data Access Object (DAO) pattern to implement BMP
10. Introduction to Java Message Service (JMS)
  • Overview of enterprise messaging
  • Point-to-point and publish-subscribe messaging styles
  • JMS administered objects
  • JMS application development
11. Developing Message-Driven Beans
  • Message-Driven Beans and JMS destination
  • Client view of MDB
  • MDB lifecycle
  • Message Listener interface
  • Message Driven Context interface
  • Deployment descriptors for MDB
  • MDB with JCA resource adapter
12. EJB Timer Service
  • Overview of Timer Service
  • Timer Service APIs
  • Programming with Timer Service
13. Transactions
  • Overview of EJB Transaction
  • Container-Managed Transaction
  • Bean-Managed Transactions
  • Transaction Isolation Level
  • Transactional Stateful Session Beans
  • Exceptions and Transactions
14. EJB Security
  • Overview of EJB security
  • Security roles
  • Security role references
  • Method permissions
  • Object level security
  • Security context
15. Java Authentication and Authorization Service
  • How does JASS works
  • Login context and login module
  • JAAS configuration file
  • JAAS policy file
  • Using JAAS with EJB client