Developing Applications with Java EE — A 5 day course

Synopsis

The Developing Applications with Java EE course introduces delegates to version 6 of the Java Enterprise Edition API. It explains the JEE technologies and how they can be used to build large scale web based applications.

Delegates will learn how to develop Java systems that generate front end web pages using tools such as Servlets, Java Server Pages and Java Server Faces and will also create business components using EJB versions 3.0 and 3.1. In addition, we will develop programs to access remote databases and show how technologies such as JNDI, JMS and Web Services can be integrated into the overall solution.

The delegate will practice:

JDBC

Remote Method Invocation

Servlets

Java Server Pages

Java Server Faces

The Java Persistence API

Java Messaging Services

JNDI

Java Transaction API

Enterprise Java Beans 3.1

Web Services

Objectives

By the end of the course delegates should be able to:

Understand the Java Enterprise Architecture

Write java programs to interface with databases

Run method calls on remote objects

Write code to generate dynamic HTML pages

Create web applications using Servlets

Use tag libraries to develop Java Server Pages

Investigate web applications using Java Server Faces

Configure the Java Messaging Service

Understand the Java Naming and Directory Interface

Create business components with the EJB specification

Use the Java Persistence API to create entity classes

Scope transactions with the Java Transaction API

Write web services

Contents

Overview

The JEE Environment

System Architecture

Putting It All Together

Remote Method Invocation

The Distributed Computing Model

Designing the Remote interface

Building a Remote Object

Dynamically Downloading Classes

The RMI Registry

JNDI

Similarities with JDBC

Features of naming services

The Initial Context

Naming Example

Directory Services

JNDI and J2EE

Object Storage

Exercise

Database Connectivity (JDBC)

Connecting to Databases

Statements

Result Sets

Releasing Database Resources

Metadata

Prepared Statement Objects

Stored Procedures

Pooled Connections

Transactions

Transaction Isolation and Data Locking

Exercise

Servlets

Servlets and HTTP Requests

The HTTP Servlet Model

The MVC Architecture

The HTTP Servlet Hierarchy

Servlet Usage

Writing an HTTP Servlet

Executing an HTTP Servlet

Request Parameters

Servlet Parameters

Servlet Initialization Parameters

Servlet Context Parameters

Web Application State Using Servlets

Session Management

Servlet Issues

Threading Issues

Exception Handling

Error pages

Exercise

Java Server Pages (JSP)

How JSPs work

Creating a Java Server Page

JSP / XML Elements

Servlet To JSP Request Dispatching

Action Elements

Implicit Objects

Error Pages

JSP Tag Libraries

Custom Tags and Tag Libraries

Commercially available tag libraries

Exercise

JSP Expression Language

JSP Expression Language

EL expressions

Variables

Functions

Exercise

Java Server Faces (JSF)

Introducing JSF

JSF tag libraries

The Faces Servlet

Page navigation

Managed beans

Event handling

Validation

Java Messaging Services (JMS)

Messaging scenario

Message Domains

Configuring a JMS Application

Messaging Activity

Asynchronous Message Consumption

Transactions

Messages

Enterprise Java Beans (EJB)

Why EJBs?

The EJB Architecture

The EJB server

The EJB container

EJB Components

EJB Component types

EJB Interfaces

Local and Client views

Session Beans

Message Driven Beans

Other classes

EJB Session Beans

Creating a Session Bean

Calling EJBs from Servlets

The Singleton Session Bean

Packaging and deploying Session Beans

Exercise

Java Persistence API

Java Persistence Specification

Object Relational Mapping

Creating an Entity Class

Controlling the JPA Life Cycle

The Entity Manager API

Deploying Entity Classes

Exercise

AVA Transaction API

Transaction Scoping

Creating Programmatic Transactions

Creating Declarative Transactions

Locking and Performance

Handling Exceptions

Exercise

Java Messaging Service

Messaging scenario

Message Domains

Configuring a JMS Application

Messaging Activity

Asynchronous Message Consumption

Transactions

Message-Driven Beans

Characteristics of Message-Driven Beans

Creating Message-Driven Beans

Utilising Life Cycle Events

Exercise

Web Services

Examples of Web Services

Reasons to Use Web Services

The Web Services Protocol Stack

SOAP, WSDL and UDDI

Exercise

Publicly scheduled dates, locations, and prices

A schedule of dates for this subject is not currently available. Please call 0333 210 0140 or use our contact form to enquire about places and availability.

Suitable For

This course is aimed at programmers who need to understand and program in the Java enterprise architecture.

Follow-On Courses

Prerequisites

Examination

A range of Oracle Java Certifications, along with details of the examinations and supporting courses, will be found here.

The Developing Applications with Java EE course, in conjunction with the Java Web Development - Servlets and JSP course will teach the major topics required for the delegate to work towards achieving the Oracle Certified Expert, Java Platform 6 JavaServer Pages and Servlet Developer (exam 1Z0-899).

This Oracle Certified Expert qualification is geared toward experienced developers of Java technology applications. Certified individuals should have the knowledge and skills to quickly build web applications suited to any Java EE 6 application server using JSP and servlet technologies.

It is necessary to gain Java OCA certification to become a Java OCP, see the Fundamentals of Java Programming course for details. It is also necessary to gain Java OCP certification, see the Java Programming course for details, to become a Java OCE.

Following attendance on the relevant courses, delegates will need to dedicate time for self study and researching the topics covered on the course. They will also need to gain hands-on experience so they can put into practice what they have learnt on the courses.