Live Chat
Monday - Friday 8am - 6pm EST Chat Now
Contact Us
Monday - Friday 8am - 8pm EST 1-866-716-6688 Other Contact Options
Checkout

Cart () Loading...

    • Quantity:
    • Delivery:
    • Dates:
    • Location:

    $

Developing Business Component with Enterprise JavaBeans (EJB) 3.1

New – Learn to use the architecture of Enterprise JavaBeans (EJB) in order to write applications that are scalable, transactional, and multi-user secure.

GK# 6940

Course Overview

TOP

The EJB architecture is a component architecture for the development and deployment of component-based business applications. Applications written using the Enterprise JavaBeans (EJB) architecture are scalable, transactional, and multi-user secure. 

The purpose of EJB 3.1 is to improve the EJB architecture by reducing its complexity from the EJB developer's point of view.

Schedule

TOP
  • Delivery Format:
  • Date:
  • Location:
  • Access Period:

$

What You'll Learn

TOP
  • Introduction to JEE
  • EJB 3.1
  • Dependency Injection (CDI)
  • Session Beans
  • Asynchronous Session Bean
  • Singleton Session Bean
  • Message-Driven Beans
  • JPA and Entity
  • Object-Relational Mapping
  • Java Persistence Query Language
  • Entity Relationships
  • Many-to-Many Entity Relationships
  • Entity and Inheritance
  • Timer Service
  • Interceptors
  • Transactions
  • EJB Security
  • Integrating JSF and EJB 3.1 (optional)

Outline

TOP
Viewing outline for:

Classroom Live Outline

Introduction to JEE

  • What is JEE?
  • JEE APIs
  • JEE Architecture
  • Benefits of JEE

What is New in EJB 3.1?

  • What are EJBs?
  • Main Characteristics of EJBs
  • EJB Client
  • What is New in EJB 3.1?
  • Global JNDI Names
  • Singleton Session Bean
  • Timer Service
  • Asynchronous Session Bean

Dependency Injection (CDI)

  • Introduction
  • Need for Inversion of Control
  • The @Inject Annotation
  • Beans.xml
  • Example
  • Use of Interfaces
  • Example
  • The @Default Annotation
  • Example
  • Qualifiers
  • Accessing Enterprise Beans
  • Using Enterprise Beans in Clients
  • Portable JNDI Syntax
  • Enterprise Beans (No-InterfaceView)
  • Local Enterprise Beans
  • Remote Clients

Session Beans

  • Type of Session Beans
  • The Stateful Session Bean
  • The Stateless Session Bean
  • Requirements for Stateless Session Bean
  • The Life Cycle of a Stateless Bean
  • Life in the Method-Ready Pool
  • Life Cycle Methods
  • Dependency Injection
  • Example: Business Interface
  • Example: Bean Class
  • Session Bean Client

Asynchronous Session Bean

  • Asynchronous Communication
  • Concurrent Programming
  • Future Object Methods
  • Example
  • Exercise

Singleton Session Bean

  • Understand Singleton Session Bean
  • The Life Cycle for Singleton Session Bean
  • Life Cycle Methods
  • The @Startup Annotation
  • Singleton Dependency
  • Singleton Concurrency
  • Container Managed Concurrency
  • Bean Managed Concurrency
  • Access Timeout
  • Example
  • Exercise

Message-Driven Beans

  • Overview of MDB
  • Overview of JMS
  • Using JMS
  • Type of Messages
  • Message Producer: Session Bean
  • @MessageDriven
  • @ActivationConfigPropert
  • Message Consumer: MDB
  • Example
  • Exercise

JPA and Entity

  • Java Persistence API
  • Entity Overview
  • Requirements for Entity Classes
  • Domain Model
  • Primary Keys
  • Example
  • Persistence Unit, Context, and Entity Manager
  • CMP And EntityManager
  • EntityManager
  • Entity Client
  • Persistent Fields and Properties
  • Example
  • Persistence.xml
  • Obtaining an EntityManager in EJB
  • Obtaining an EntityManager in a Plain Java Class
  • Entity Life Cycle
  • Example
  • Validating Persistent Fields and Properties
  • Example
  • Exercise

Object-Relational Mapping

  • Field Access
  • Property Access
  • Mapping to a Table
  • Column Mapping
  • Mapping Simple Types
  • Mapping the Primary Key
  • Identifier Generation
  • Primary-Key Classes
  • Finding an Entity
  • Removing an Entity
  • Updating an Entity
  • Finding all Records
  • Example: Primary ID is Known
  • Example: Primary ID is Not Known

Java Persistence Query Language

  • Introduction
  • Using the SELECT Query
  • Example
  • The WHERE Clause
  • Example
  • Named Query
  • Example
  • Native SQL Query
  • Example

Entity Relationships

  • Introduction
  • “HAS-A” Relationship
  • Example
  • Unidirectional and Bi-directional
  • Example
  • Foreign Key
  • Example Schema
  • One-To-One Unidirectional
  • Creating Entity Instances
  • The Cascade Behavior
  • One-To-One Bidirectional
  • Avoid an Infinite Loop

Many-to-Many Entity Relationships

  • Many-to-One Unidirectional
  • Example
  • Creating Entity Instances
  • One-to-Many
  • Example
  • Modeling One-To-Many
  • Bidirectional Links
  • Instantiate Entities
  • Example
  • Modeling Many-To-Many
  • Example
  • Lazy and Eager Initialization

Entity and Inheritance

  • Inheritance Strategies
  • Example
  • Single Table Per Class Hierarchy
  • Annotating Single Table
  • Example
  • Single Table Structure
  • One Table Per One Entity
  • Example
  • Joined Subclasses
  • Example

Timer Service

  • Introduction
  • Automatic Timer
  • Calendar-Based Timer Expressions
  • The @Schedule annotation
  • @Schedule Attribute Syntax
  • Example
  • Programmatic Timers
  • The TimerService Interface
  • Calendar-Based Timer (Programmatically Created)
  • Example
  • Non Calendar-Based Timer (Programmatically Created)
  • Example: Single Event Timer

Interceptors

  • Introduction
  • Role of Interceptors
  • The @Interceptors annotation
  • Use of Interceptors
  • Creating an Interceptor
  • Example

Transactions

  • Overview
  • Distributed Transactions
  • Isolation Levels
  • Transactions in EJB
  • Managing Transactions
  • BMT
  • CMT
  • Transactions Attributes
  • Transactions Outside the Container
  • Example

EJB Security

  • Introduction
  • How It Works?
  • Define Role Names (in Code)
  • Define Role Names (in DD)
  • Specify Role Access (in Code)
  • Specify Role Access (in DD)
  • The @PermitAll Annotation
  • The @DenyAll Annotation
  • Example
  • Programmatic Security
  • Example

Integrating JSF and EJB 3.1 (Optional)

Prerequisites

TOP

Familiarity and experience with Java programming.

Who Should Attend

TOP

Those interested in learning more about Java programming specifically related to Enterprise JavaBeans (EJB).

Course Delivery

This course is available in the following formats:

Classroom Live

Receive face-to-face instruction at one of our training center locations.

Duration: 5 day

Virtual Classroom Live

Experience expert-led online training from the convenience of your home, office or anywhere with an internet connection.

Duration: 5 day

Request this course in a different delivery format.
Enroll