Java Enterprise Edition - JEE6


Course Description

This intense four-day course teaches Java programmers how to develop enterprise applications using the ease of development features introduced in Java EE 5 and 6. Students will learn how to create dynamic web applications with JSP, Java Servlets, JSTL, and JSF. Next, they will learn how to send and receive asynchronous messages with the Java Message Service. Students then learn about session and message-driven EJBs, as well as the Java Persistence API and Java Transaction API. The course ends with XML topics including data binding with JAXB and developing SOAP based web services with JAX-WS.

Duration: 4 days


Prerequisites

Java Programming

Course Introduction

Course Objectives
Course Overview
Using the Workbook
Suggested References

Introduction to Java EE

Introduction to Java EE
Java SE Building Blocks
Web Applications
Web Services
Enterprise JavaBeans
Additional Java EE APIs
POJO, Dependency Injection, and Annotations
The Java EE Platform

Introduction to JSP and JSTL

MVC and Web Applications
JSP As the View
JSP Scripting Elements
Request and Response
Expression Language
EL Operators
include and forwards
JSTL
Conditionals and Iteration in JSTL
JSTL Variables and Output

Introduction to Java Servlets and JavaBeans

Java Servlets as the Controller
HttpServlet
HTTPServletRequest
HTTPServletResponse
HttpSession
RequestDispatcher
JavaBeans as the Model
Bean Scopes
WAR File

Introduction to JavaServer Faces

Frameworks
JSF Benefits
JSF Tag Libraries
Components
Managed Beans
Event handling
Navigation
Validators and Converters
Lifecycle
JSF Application Structure

JMS

Messaging Concepts
What is JMS ?
Point-to-Point
Publish/Subscribe
Message Object
Session
Creating the Client

EJB3 Overview

The Enterprise JavaBean
EJB Benefits
A Simple EJB
Java Enterprise Edition v.4.1.2
Local and Remote EJB Access
Creating a Client
Assembly and Deployment of EJBs
Creating a Client
Assembly and Deployment of EJBs

Session Beans and Message-Driven Beans

A Session Bean
Stateless Session Beans
PostConstruct and PreDestroy
Lifecycle of a Stateless Session Bean
Stateful Session Beans
Lifecycle of a Stateful Session Bean
Lifecycle Callbacks
Singleton Session Beans
Lifecycle of a Singleton Session Bean
Dependency Injection
Message-Driven Beans
MDB Lifecycle
Sending a Message

Introduction to the Java Persistence API

What is Java Persistence?
Persistence Objects and Metadata
Creating an Entity Class
The Persistence Unit
The Entity Manager
Looking up Entities
Deployment

Persisting Entities

EntityManager and Persistence Context
Managed and Detached Entities
Creating and Removing Entities
Bulk Updates and Deletes
Transactions
Mapping Entities to Tables
Primary Keys
Entity Relationships
Cascading

Transactions

The Java Transaction API
The UserTransaction Interface
Transactions in Java EE
Bean-Managed Transactions
Container-Managed Transactions
Transaction Attributes
Transaction Rollbacks

Data Binding with JAXB

W3C XML Schema
XML Data Binding Basics
JAXB Architecture
Compiling Schema to Java
JAXBContext
Unmarshalling
Marshalling
Validation
Custom Binding Declarations

Java API for XML-Based Web Services (JAX-WS)

JAX-WS
Creating a Web Service Endpoint
The Service Implementation
The Service Interface
Generating Artifacts
Generated Files
Packaging and Deploying the Application
A JAX-WS Client
wsimport

Case Study

Persistence
Stateless Session Bean
Web Tier Client: HTML
Web Tier Client: Controller Servlet
Web Tier Client: Data Transfer JavaBean
Web Tier Client: JSP
Web Tier Client: web.xml
Message-Driven Bean
JMS Client
JAX-WS Endpoint
Web Service Client


J2EE Java Enterprise Edition