UMBC Training Centers logo

Java EE 6 Programming - WebSphere 8 / RAD 8

 

Course Description | Outline | IT Home

Outline

 

1- OVERVIEW OF SERVLETS

  • Java Servlet
  • Java EE and Servlet
  • Servlet Responsibilities
  • The Servlet Container
  • The Servlet Class
  • The HttpServlet Class
  • Servlet Configuration – web.xml
  • Servlet Configuration – Annotations
  • Life Cycle – Request Processing
  • User Input
  • Example – User Input
  • Request
  • Request Parameters
  • Request Attributes
  • Response
  • Tracking User State
  • Tracking Techniques
  • Using HttpSession
  • Session Invalidation
  • Summary

2 -OVERVIEW OF JAVASERVER PAGES (JSP)

  • JavaServer Pages
  • A Simple Example - Hello.jsp
  • JSP Benefits
  • How JSP Works
  • JSP Scripting Elements
  • JSP Directive
  • JSP Declarations
  • Declarations – an Example
  • JSP Expressions
  • JSP Expressions – an Example
  • JSP Scriptlets
  • JSP Scriptlets – an Example
  • JSP Comments
  • JSP Predefined Variables
  • The request Object
  • The response Object
  • The out Object
  • Out – an Example
  • MVC Implementation
  • Request Dispatching - Forward Request to JSP
  • Using Java Beans in JSP
  • Summary

3 -INTRODUCTION TO JAVASERVER FACES

  • What is JavaServer Faces (JSF)?
  • Why Use JSF?
  • Nature of a JSF Application
  • The Sun Reference Implementation (RI)
  • JSF and MVC
  • Faces Servlet
  • Managed Bean
  • The View
  • Facelets
  • Facelets in JSF 2
  • A Simple JSF Application
  • The Input Form: form.xhtml
  • The Result: thanks.xhtml
  • The Controller: AddressBean
  • Page Flow or Navigation Rule
  • How Does the Application Work?
  • Under the Covers: The Rendered Form HTML
  • Under the Covers: The Layout Tree
  • Summary

4 - BASIC JSF USER INTERFACE COMPONENTS

  • JSF UI Components
  • JSF Component Tag Libraries
  • Using the Tag Libraries
  • HTML Tag Library
  • Identifying Components
  • Component Identifier
  • Client Identifier
  • Form Input Field Names
  • Define a Form
  • Labels and Images
  • Buttons
  • Links
  • Adding Parameters to Links
  • Text Input
  • Simple Check Box
  • Check Box Group
  • Check Box Group Example
  • Radio Button
  • List Boxes
  • Dynamic List Box
  • Example
  • Another Example
  • JSF Core Library
  • JSF Core Library - Components
  • Summary

5 - MANAGED BEAN SCOPES IN JSF

  • Managed Bean Scopes
  • Implications of Various Scopes
  • View Scoped Managed Beans
  • Defining Managed Bean Scope
  • Getting Rid of the Session
  • Application Scope
  • "None" Scope
  • Custom Scopes
  • Summary

6 -OVERVIEW OF CONTEXTS AND DEPENDENCY INJECTION

  • Once upon a time
  • What is CDI?
  • The JSRs
  • CDI Example
  • What Good is DI
  • Old Bean Scope
  • CDI Bean Scope
  • Other Advanced Features of CDI
  • CDI Implementation
  • Summary

7 - DEFINING CDI BEANS

  • Requirements of Bean Classes
  • Bean Initialization Methods
  • beans.xml
  • Managed Bean Type
  • Using Beans with EL
  • Beans Have Default Names
  • Bean Scopes
  • EJBs in CDI
  • Summary

8 - DEPENDENCY INJECTION IN CDI

  • Injection Points
  • @Inject
  • Typesafe Resolution
  • @Qualifier
  • Using an @Qualifier
  • Alternatives
  • The Client Proxy
  • Summary

9 - JSF INTEGRATION, SCOPE AND CONTEXT

  • CDI Beans in JSF
  • JSF Example
  • Introduction to Scopes
  • Normal and Pseudo- scopes
  • Declaring Scope of a Bean
  • Scope Boundaries
  • Instance Sharing
  • Conversation Scope
  • Use Cases of Conversation Scope
  • Starting and Ending Conversations
  • Propagating Conversations
  • How Dependent Scope Works
  • Forcing a Dependent Instance
  • Summary

10 - JSF NAVIGATION

  • JSF Navigation
  • Example Action Listener
  • faces-config.xml File
  • JSF Navigation
  • Choosing Between Redirect & Direct Rendering
  • Navigation Rules: Example
  • Navigation: Scenarios
  • Implicit and Conditional Navigation
  • Summary

11 - JSF GET REQUESTS AND VIEW PARAMETERS

  • Using GET Requests with JSF
  • POST-Redirect-GET (PRG) Pattern
  • Implementing PRG Pattern With JSF
  • Defining View Parameters
  • New <h:link> and <h:button> Tags
  • Passing Request Parameters
  • Passing Request Parameters from POST Action Methods
  • Causing Redirection
  • Using a PreRenderView Event
  • The Flash Object
  • Summary

12 -JSR 303 BEAN VALIDATION

  • Validation in Applications
  • Using Validation
  • Built-in Validation Constraints
  • Using Constraints
  • Showing Error Messages in JSF
  • Custom Validation Messages
  • Externalizing Validation Messages
  • External Message Example
  • Defining Custom Constraints
  • Custom Constraint Example
  • Interface
  • Validator
  • Custom Constraint in JSF
  • Bootstrapping Validation
  • The Validator API
  • Validation Groups
  • Group Example
  • Using Bean Validation in JPA 2.x and JSF 2.x
  • Summary

13 - ADVANCED JSF USER INTERFACE COMPONENTS

  • HTML Panel
  • Applying Styles
  • Grouping Components
  • Data Table
  • Using a Data Table
  • Data Table Model
  • Using a Data Table
  • Displaying a Header and Footer Row
  • Applying Styles
  • Adding Links to a Row
  • Using Component Binding
  • Handling Action
  • Using the Data Table Model
  • Handling Action
  • Summary

14 - OVERVIEW OF ENTERPRISE JAVABEANS (EJB)

  • Need for EJBs
  • Distributed Computing
  • Distributed Transaction
  • Distributed Security
  • What are EJBs?
  • Main Characteristics of EJBs
  • EJB Client
  • EJB Container
  • Enterprise JavaBeans
  • Session Beans
  • Message-Driven Beans (MDBs)
  • Stateless Session Bean
  • Annotations
  • Stateless Session Bean Components
  • Example: Business Interface
  • Example: Bean Class
  • Business Interface Details
  • Summary

15 - STATEFUL SESSION EJB

  • Stateful Session Bean
  • Stateful Session Beans
  • Session Bean Lifecycle
  • Stateful Session Bean Lifecycle
  • Stateful Session Bean Example
  • Stateful Session Bean Client
  • Removing the Bean
  • Summary

16 - MESSAGE DRIVEN EJBS

  • Asynchronous Messaging Features
  • Message-Oriented Middleware
  • Messaging Domains
  • Publish/Subscribe
  • Point-to-Point
  • Java Message Service
  • JMS Programming: Overview
  • JMS Programming: Overview…
  • The JMS Interfaces
  • Message Driven EJBs
  • Message-Driven Bean Interfaces
  • javax.jms.MessageListener
  • javax.jms.Message
  • Specialized Message Types
  • Message Driven Bean - Example
  • Summary

17- OVERVIEW OF JAVA PERSISTENCE API

  • Java Persistence API
  • Data Persistence
  • Entities
  • Session EJB vs JPA Entities
  • Entities
  • Persisting and Retrieving Data
  • Accessing Entities
  • EntityManager & Persistence Unit
  • Persistence Context
  • Entities - Example
  • persistence.xml – Hibernate Provider
  • persistence.xml – Open JPA Provider
  • persistence.xml - Toplink
  • Entity Instance Lifecycle
  • Creating EntityManager in Session EJB
  • Creating EntityManager in a Plain Java Class
  • Working With the EntityManager Interface
  • Transaction Basics
  • Summary

18 -JPA ENTITY LIFECYCLE

  • Entity Lifecycle
  • When is an Entity Managed or Detached?
  • Implementing the CRUD Pattern
  • Accessing Entities Using Stateless Session Beans
  • Inserting Data
  • Retrieving Data
  • Updating Data
  • Deleting Data
  • Merging Entities
  • Merging Entities (example)
  • Life-Cycle Callbacks
  • Example: Internal callback
  • External Callback Class
  • Listener Class - Example
  • Synchronizing with Databases
  • Entity Lookup
  • JPAQL (JPA Query Language)
  • Summary

19 - JAVA PERSISTENCE QUERY LANGUAGE (JPA QL)

  • JPA Query Language
  • Basic JPAQL Syntax
  • Simple SELECT Examples
  • Example of Using JPAQL
  • The SELECT clause
  • Reading Data from Code
  • The WHERE Clause
  • Example Using JPAQL from Session EJB
  • Named Query
  • Multiple Named Queries
  • Bulk Updates
  • Bulk Delete
  • Running Native SQL Query
  • Native SELECT Query
  • Native SQL Delete and Insert
  • Named Native Query
  • Summary

20 - BASIC JPA ENTITY RELATIONSHIPS

  • Relationship Between Entities
  • Anatomy of a Relationship
  • Foreign Key
  • Example Schema
  • One-to-One Unidirectional
  • Creating Entity Instances
  • Traversing the Relationship
  • The Cascade Behavior
  • One-to-One Bidirectional
  • Maintaining Bidirectional Links
  • Simplifying Bidirectional Links
  • Traversing the Relationship
  • Summary

21 -OVER VIEW OF JAVA WEB SERVICES

  • Java Web Service Implementation Choices
  • Java SOAP Web Services with JAX-WS
  • Java REST Web Services with JAX-RS
  • REST vs SOAP Summary
  • Java and XML with JAXB
  • Java Web Service Clients
  • Summary