Enterprise JavaBeans (EJB) Training

  4.6 out of 5 - Read Testimonials

This course gives the experienced Java developer a thorough grounding in Enterprise JavaBeans -- the Java EE standard for scalable, secure, and transactional business components. EJB 3.0 has reinvigorated this area of Java enterprise development, with dramatic improvements in ease of use and smooth integration with servlet-based or JSF web applications. This course treats the 3.0 specification, with a few notes on 2.1 compatibility but an emphasis on doing things the 3.0 way.

Students get an overview of the EJB rationale and architecture, and then dive right into creating session beans and entities. The new dependency-injection features of EJB3 cause perhaps the most confusion, so we work through a chapter devoted explicitly to DI and JNDI, and basically how components find each other to make an application. We study entities and the Java Persistence API in depth, and get a look at message-driven beans as well. The latter phase of the course covers advanced topics including transactions, security, and interceptors.

This version of the course is designed to work with the Java EE 5 SDK, Update 7, which includes the GlassFish application server, version 2.1, and TopLink as the JPA provider. Variants of the course are also available with specific support for recent versions of JBoss and WebLogic.

  1. Understand the role of EJB in the broader Java EE platform.
  2. Describe the features that are implemented by an EJB container on behalf of application components.
  3. Build stateless session beans as part of a service layer or SOA.
  4. Build JPA entities to represent persistent data records within the Java application.
  5. Develop systems of entities to manage complex data models including 1:1, 1:N, and N:N associations.
  6. Manage transactional behavior of the application through declarative and programmatic techniques.
  7. Invoke EJB sessions from Java web applications.
  8. Use dependency injection and JNDI names to assemble complex web/EJB systems with minimal fuss and maximal flexibility.
  9. Implement message-driven beans to process queued messages asynchronously.
  10. Declare and/or program transaction boundaries, persistence contexts, and exception handling to properly control persistence logic.
  11. Apply role-based authorization policies to EJBs.
  12. Build interceptors to perform generic processing before, after, or around EJB business-method invocations.
  13. Use EJB timers to defer processing or establish regularly scheduled tasks.
  1. Overview
    1. Enterprise Applications
    2. Containers and Objects
    3. Three Containers
    4. Remote Connectivity
    5. Scalability and Availability
    6. Security
    7. Transaction Control
  2. Architecture
    1. What is an EJB?
    2. Types of Beans
    3. Inversion of Control
    4. The Bean-Type Annotations
    5. Dependency Injection
    6. The @EJB Annotation
    7. The GlassFish Application Server
    8. The Administration Console
    9. Deploying EJB Applications
    10. Configuring Data Sources
    11. Development Cycle and Roles
  3. Session Beans
    1. Interface/Implementation Split
    2. Stateful vs. Stateless
    3. The @Stateless Annotation
    4. Lifecycle and State Transitions
    5. Session Context
    6. The @Stateful Annotation
    7. State Transitions
    8. Singletons and Pools
  4. Entities
    1. The Java Persistence API
    2. Persistence Annotations
    3. Configuration by Exception
    4. ORM Annotations
    5. The EntityManager
    6. Acquiring and Using the EntityManager
    7. persistence.xml
    8. @Enumerated and @Temporal Types
  5. Associations
    1. Associations, Cardinality, and Ownership
    2. Annotations
    3. Unidirectional vs. Bidirectional
    4. The @Embedded Annotation
  6. Java Persistence Query Language
    1. OO Query Languages
    2. The FROM Clause and Directionality
    3. The WHERE Clause
    4. The SELECT Clause
    5. Joins
    6. Aggregates and Grouping
    7. Ordering
  7. Dependency Injection
    1. Interdependent Systems
    2. The Factory Pattern
    3. The Service Locator Pattern
    4. Dependency Injection
    5. Injection by Magic?
    6. Injection by Type
    7. Injection by Name
    8. The Component Environment
    9. Deployment Descriptors
    10. Impact on Stateful Session Beans
    11. JNDI
    12. Connecting to a Remote Bean
    13. Using mappedName
    14. Who Can Declare Dependencies
  8. Message-Driven Beans
    1. Asynchronous Messaging
    2. The Java Message Service
    3. Message-Driven Beans
    4. Message Types
    5. Injecting JMS Queues
    6. JMS Configuration in GlassFish
  9. Transactions
    1. ACID Transactions
    2. The EntityTransaction Interface
    3. EJB Transaction Attributes
    4. Persistence Contexts
    5. Extended Persistence Contexts
    6. Isolation Levels
    7. Application-Managed Persistence
    8. The SessionSynchronization Interface
    9. Impact on JMS and MDBs
  10. Exception Handling
    1. Java Exceptions
    2. Remote Exceptions
    3. EJB Exception Handling
    4. System Exceptions
    5. Application Exceptions
    6. Transaction Control
  11. Security
    1. Authentication and Authorization
    2. Declarative Authorization
    3. Abstract Roles
    4. Concrete Realms
    5. Configuring User Realms in GlassFish
    6. Programmatic Authorization
    7. Run-As Identity
  12. Interceptors
    1. EJB and AOP
    2. The Intercepting Filter Pattern
    3. EJB Interceptors
    4. Annotating Interceptor Classes
    5. The InvocationContext Interface
    6. Binding Interceptors to Targets
    7. Shared Lifecycle and Context
    8. Interceptors and MDBs
  13. Timers
    1. The EJB Timer Service
    2. The TimerService Interface
    3. The Timer Interface
    4. Timeout Methods
    5. Timer Handles
    6. Transactions and Timers
Class Materials

Each student in our Live Online and our Onsite classes receives a comprehensive set of materials, including course notes and all the class examples.

Class Prerequisites

Experience in the following is required for this EJB class:

  • Solid Java programming skills and understanding of OO Java and Java-5 language features is essential.
  • Experience with developing Java web applications is very helpful for this course, but not strictly required.
  • Some knowledge of XML will be useful for writing the occasional deployment descriptor, but is not required.
Preparing for Class

Training for your Team

Length: 5 Days
  • Private Class for your Team
  • Online or On-location
  • Customizable
  • Expert Instructors

Training for Yourself

$2,125.00 or 5 vouchers

Upcoming Classes

  • See More Classes

Please select a class.
  • Live Online Training
  • For Individuals
  • Expert Instructors
  • Guaranteed to Run
  • 100% Free Re-take Option
  • 1-minute Video

What people say about our training

Well organized course with quality instructors.
Damodar Reddy
Instructor presented valuable materials and kept us engaged throughout the course!
Kitrek Riese
Great course!
Nebojsa Gvozden
Department of Child Support Services
The trainer really went above and beyond my expectations in helping craft the course to my project needs.
Chris Fisher

No cancelation for low enrollment

Certified Microsoft Partner

Registered Education Provider (R.E.P.)

GSA schedule pricing


Students who have taken Instructor-led Training


Organizations who trust Webucator for their Instructor-led training needs


Satisfaction guarantee and retake option


Students rated our Enterprise JavaBeans (EJB) Training trainers 9.12 out of 10 based on 38 reviews

Contact Us or call 1-877-932-8228