CTE Solutions chair
Quick Search:  
Course No.  
FacebookTwitterLinkedInYouTube
Savings

Got A Question?
Talk to an Educational Consultant and get the answers you need.

By Phone
Ottawa: 613-798-5353
Toronto: 416-284-2700
Toll Free: 866-635-5353

right arrow Ask your question online

JV017 - Mastering JEE with JSF2, EJB3, JPA, and Web Services

View Dates and Locations

Summary


Objective


This class combines lectures with hands-on experience that will help students to understand JSF 2, EJB 3 and REST Web Services


Table of Content

1. Introduction to JEE


  • What is JEE
  • JEE APIs
  • JEE Architecture
  • Benefits of JEE

2. Introduction to JSF

  • What is JavaServer Faces?
  • Main Components
  • Benefits of JSF
  • What is JSF Application?
  • Why JSF?

3. JSF Architecture

  • Physical Components
  • How Does JSF Work?
  • The FacesServlet
  • he Lifecycle Object
  • Reconstitute Component Tree
  • Apply Request Values
  • Process Validation
  • Update Model Values
  • Invoke Application
  • Render Response

4. Expression Language 

  • What is EL?
  • Advantages of EL
  • EL Basics
  • Outputting Simple Bean Properties
  • Nested Bean Properties
  • Three Uses of #{...}
  • Getter vs. Setter Method
  • Using the ( ) Form
  • Collections Example
  • Predefined Variables
  • Expression Language Operators
  • EL Example

5. Managed Beans 

  • Overview
  • Tree Part of the Bean
  • Pre Populating Input Fields
  • Named Beans
  • Bean Scopes
  • Request and Response Objects
  • Dependency Injection

6. Page Navigation  

  • Overview
  • Faces-config File
  • Navigation Rules
  • Example
  • Bean Declaration
  • @ManagedBean vs. faces-config.xml
  • Wildcards in Navigation Rules
  • Compute Destination Page

7. Event Model

  • Overview
  • Type Of Event Listeners
  • ActionListener Event
  • Example
  • Changing the Locale Programmatically
  • Example

8. JSF Validation and Convertors   

  • Overview
  • Validation Approaches
  • Implicit Automatic Validation
  • Precedence of Validity Tests
  • Example
  • Build in Validators
  • Conversion vs. Validation
  • Explicit Validation
  • Validation using Custom Validator Methods
  • Example
  • Introduction To Convertor
  • Implicit and Explicit Conversions
  • Custom Conversions
  • Custom Convertor Methods
  • Example

9. EJB 3.0 Concepts

  • What is new in EJB 3.0?
  • EJB Roles
  • Web Services
  • Types of EJB
  • Session Bean   
  • Message-Driven Bean
  • Flexible Model

10. Session Bean

  • Session Bean Contract
  • Classes and Interfaces
  • The Stateless Session Bean
  • Requirements for Stateless Session Bean
  • The Life Cycle of a Stateless Bean
  • Life in the Method-Ready Pool
  • Life Cycle Methods
  • Dependency Injection
  • SessionContext Interface
  • EJBContext Interface
  • Example: Business Interface
  • Example: Bean Class
  • Steps to Compile
  • Run Application
  • Conversational State of a Stateful Session Bean
  • Requirements for  Stateful  Session Bean
  • The Life Cycle of a Stateful Bean
  • Lifecycle Callbacks for Stateful Session Beans
  • Bean’s Conversational State
  • Example

11. Message-Driven Beans

  • Overview of MDB
  • Overview of JMS
  • Using JMS
  • Type of Messages
  • Message Producer : Session Bean
  • @MessageDriven
  • @ActivationConfigPropert
  • Message Consumer: MDB
  • Example

12. Writing a Client

  • Overview
  • Locating Objects with JNDI
  • The Server Namespace
  • Locating JNDI Service
  • Environmental Object in the InitialContext
  • System Properties
  • Client View
  • Remote Client
  • Local Client
  • Obtaining a Session Bean’s Business Interface
  • Client View: Entity Bean
  • Obtaining an EntityManager

13. JPA and Entity

  • Entity  Overview
  • Domain Model
  • CMP And EntityManager Interface
  • Primary Keys 
  • Developing  Entity
  • Entity Details
  • Entity  Client
  • Dependency Injection
  • Dynamic Lookup
  • EntityManager
  • Security
  • Example

14. Dependency Management

  • Overview
  • The JNDI ENC and Injections
  • What Can Be Registered in the ENC?
  • How is the JNDI ENC Populated?
  • Annotation Population
  • Dependency Lookup
  • Dependency Injection
  • Declaring Dependencies
  • @EJB
  • @PersistenceContext
  • @Resource
  • @Resources

15. Object-Relational Mapping

  • Field Access
  • Property Access
  • Mapping to a Table
  • Column Mapping
  • Mapping Simple Types
  • Mapping the Primary Key
  • Identifier Generation
  • Primary-Key Classes
  • Finding an Entity
  • Removing an Entity
  • Updating an Entity
  • Finding all Records
  • Example: Primary ID is Known
  • Example: Primary ID is Not Known

16. Transactions

  • Overview
  • Distributed Transactions
  • Isolation Levels
  • Transactions in EJB
  • Managing Transactions
  • BMT
  • CMT
  • Transactions Attributes
  • Transactions Outside the Container
  • Example   

17. Introduction To REST Web Services

  • What is REST?
  • Why is it Called Representation State Transfer?
  • Rest – An Architectural Style.
  • Example of Restful Web Service
  • Two Fundamental Aspects of the REST Design Pattern
  • Resource
  • HTTP
  • HTTP Methods
  • Resources With Multiple Representations
  • Components
  • Connectors
  • Communicate Statelessly
  • Summary

18. Examples

  • Example 1: Parts Depot

- Logical URLs Versus Physical URLs.
- Java, REST And RESTEasy.

  • Example 2: Hello World

- Creating Project
- HelloWorldResource Class
- Registering Web Services
- Web.xml File
- Export WAR File
- Run Web Service

  • Exercise

- Method With Parameter
- Method With More Then One Parameter
- Exercise

      3 Ways to Register
$2,375.00
$2,018.75 CAD
online only

Register Online
1 (866) 635-5353
sales@ctesolutions.com
Ask About This Course

  Latest Tweet


About This Course
Certifications
Register Online and instantly save!