Java EE: EJB 3.0 and JPA, Part 2 of 3
Interactive

Java EE: EJB 3.0 and JPA, Part 2 of 3

LearnNow Online
Updated Oct 26, 2018

Course description

This course is introduces you to the Enterprise JavaBeans (EJB 3.0) technology and is ideal for those who have never programmed using EJB. You will learn about the core concepts regarding EJB including why they are important, differences between stateless and stateful sessions, the Java Persistence API, and the JPA Entity Lifecycle using Eclipse. You will also look at the Java Persistence Query Language (JPA QL) and entity relationships.

Each LearnNowOnline training course is made up of Modules (typically an hour in length). Within each module there are Topics (typically 15-30 minutes each) and Subtopics (typically 2-5 minutes each). There is a Post Exam for each Module that must be passed with a score of 70% or higher to successfully and fully complete the course.


Prerequisites

This course is intended for intermediate to advanced Java programmers. System architects will find the advanced concepts especially beneficial in designing a framework. Students should have good Java programming knowledge and should be familiar with web application programming, including servlets and JSPs.


Meet the expert

Susan Bryant

Susan Bryant is an experienced IT trainer and consultant with a broad array of skills. She has over 15 years experience in information systems with roles including systems consulting, project management, staff management, staff mentoring, and certified technical trainer. Susan has a strong technical knowledge of IBM WebSphere Application Server, WebSphere Portal Server, WebSphere Process Server, Lotus Domino, and web application development technologies including, Struts, JSF, EJBs and AJAX.

Video Runtime

203 Minutes

Time to complete

263 Minutes

Course Outline

Module 4

Stateful Session Bean (39:19)

  • Introduction (00:53)
  • Stateful Session Bean (02:57)
  • Passivation (01:38)
  • Activation (00:52)
  • Session Bean Lifecycle (01:11)
  • Stateless Session Lifecycle (02:14)
  • Components (02:45)
  • Example (02:29)
  • Client (02:55)
  • Removing the Bean (01:14)
  • Demo: Stateful Session Bean (18:56)
  • Summary (01:11)
Module 5

Eclipse Database Configuration (14:57)

  • Introduction (00:51)
  • Demo: Database Configuration (01:29)
  • Perspective (00:44)
  • Configure Database Connection (02:52)
  • Create Table (03:26)
  • Configure JBoss (05:11)
  • Summary (00:20)

Intro to Entities (27:51)

  • Introduction (02:14)
  • Data Persistence (03:20)
  • Java Persistence API (01:19)
  • Entities (01:01)
  • Session Beans Vs Entities (01:40)
  • Entities (02:37)
  • Persisting and Retrieving Data (01:57)
  • Accessing Entities (00:49)
  • EntityManager & Persistence (01:13)
  • Persistence Context (00:43)
  • Entities - Example (02:16)
  • persistence.xml (02:45)
  • Demo: Intro to Entities (05:11)
  • Summary (00:40)

Working with Entities (42:43)

  • Introduction (00:36)
  • Entity Instance Lifecycle (02:36)
  • EntityManager in Session EJB (02:02)
  • EntityManager in Plain Java (01:17)
  • EntityManager Interface (02:15)
  • Transaction Basics (01:58)
  • Demo: Working with Entities (30:23)
  • Summary (01:33)
Module 6

Entities and JPA (43:42)

  • Introduction (00:34)
  • Entity Lifecycle (01:27)
  • Managed or Detached (03:40)
  • Implementing the CRUD Pattern (01:56)
  • Accessing Entities (00:51)
  • Inserting Data (01:15)
  • Retrieving Data (00:31)
  • Updating Data (00:56)
  • Deleting Data (00:25)
  • Merging Entities (03:13)
  • Demo: Entities and JPA (28:25)
  • Summary (00:24)

Life-Cycle Callbacks (35:02)

  • Introduction (00:38)
  • Life-Cycle Callbacks (03:45)
  • Example: Internal callback (00:44)
  • External Callback Class (01:18)
  • Listener Class - Example (00:24)
  • Synchronizing with Databases (02:16)
  • Entity Lookup (00:57)
  • JPA Query Language (02:22)
  • Demo: Life-Cycle Callbacks (22:04)
  • Summary (00:32)
;