• Online, Self-Paced
Course Description

A Java application contains presentation business logic and services layers. Business logic can be implemented using POJOS (plain old Java objects) or EJBs (enterprise java beans). EJB-Lite is a subset of the EJB specification. This course will contrast these three technologies and explore the features and use of session beans in EJB. Most business applications need to persist data. In this course, you will be introduced to the Java Persistence API, a lightweight framework that leverages Plain Old Java Objects (POJOs) for persisting Java objects that represent relational data. The course will cover JPA entities and entity mapping, the role of the Entity Manager, and using JPA queries. The course will include demonstration and practice in configuring data persistence in Java EE applications.

Learning Objectives

POJO and EJB-Lite Component Models

  • Start the course
  • describe the layers that comprise a Java EE application
  • define and contrast Java POJOs, EJBs, and EJB-Lite
  • describe the Java EJB API
  • compare stateful, stateless, and singleton session beans in Java EE applications
  • describe the steps in creating a session bean
  • describe stateful and stateless session bean life cycles
  • describe timer-based and asynchronous method invocation for session beans and describe the use of SessionContext
  • describe the use of JNDI names for EJB components
  • invoke a session bean from a servlet to download media items as thumbnails in a Java EE application
  • use a singleton session bean to cache data in a Java EE application

Java Persistence API

  • describe at a high level the Java Persistence API and object-relational mapping it entails
  • describe JPA entities and describe how to create an entity class
  • describe entity mapping and the role of a primary key in mapping and describe how to change default mapping
  • describe the use of temporal types and transient fields in JPA entities
  • describe the data types for fields and properties and contrast persistent fields and properties
  • describe persistence units, the use of the persistence.xml file, and persistence contexts in Java EE applications
  • describe the role of the Entity Manager with an example of its use in a Java EE application, and describe the entity instance life cycle and Entity Manager methods
  • describe JPA queries
  • create and configure a Java Derby database
  • create a JPA entity from a POJO
  • create and configure a persistence unit in a Java EE application
  • use the functionality of the Java Persistence API in a Java EE application
  • create dynamic JPQL queries in a Java EE application

Practice: Data Persistence

  • practice configuring data persistence for a Java EE application

Framework Connections

The materials within this course focus on the NICE Framework Task, Knowledge, and Skill statements identified within the indicated NICE Framework component(s):

Specialty Areas

  • Software Development


If you would like to provide feedback for this course, please e-mail the NICCS SO at NICCS@hq.dhs.gov.