|  |
 |  |
| |
 |
 |
|
J2EE Development with the Spring, Hibernate and JSF
|
|
Duration:
Five days
|
|
|
This course is built for Java developers, architects, and designers.
-
Developers
-
Designers
-
Architects
-
Consultants
| |
Audience should have experience with Java.
|
|
|
Description
|
Spring is a light-weight, Java bean based framework that aims to simplify
J2EE development. Its support for Inversion of Control (IoC) promotes
loose coupling of dependent objects. It also has rich support for
aspect-oriented programming (AOP).
This customized course covers the Spring framework for J2EE development,
persistence application development with Hibernate and
web-based user interface development using JavaServer Faces (JSF).
We will use the framework to build a working J2EE application including
the web tier, business tier and the data access tier.
Throught this course, special emphasis will be made on using best
practices, sound object oriented design principles and applying design
patterns.
This course is highly hands-on. We shall use MyEclipse as our
development environment.
At least 60% of the time will be devoted to labs.
|
|
Objectives
|
Upon completion, students will be able to:
-
Understand the Spring framework
-
Write Spring configuration XML files
-
Understand aspect-oriented programming
-
Use AOP with Spring
-
Understand the Hibernate framework architecture
-
Write Hibernate configuration file
-
Write Hibernate mapping files
-
Persist Java objects into a database using Hibernate persistence classes
-
Write queries with Hibernate Query Language (HQL)
-
Integrate Spring framework with a database using Hibernate
-
Perform Create, Read, Update and Delete (CRUD) operations using Spring transactions and Hibernate
-
Use Spring framework in the business layer
-
Use Spring framework in the web layer
-
Understand the lifecycle and component model of the JSF framework
-
Understand the event handling model of the JSF framework
-
Use the JSP tags to access the JSF UI components
-
Write applications with sophisticated JSF tabular data processing (sorting, pagination etc.)
-
Integrate Spring with JSF
-
Display the results of database access (queries) using JSF UI tables
|
|
Course Outline
|
Spring Essentials
-
Why and what is Spring
-
Inversion of Control and Dependency Injection
-
Introduction to Bean Factory
-
Building your first Spring application
Spring Container Concepts
-
Bean factory
-
Application context
-
Bean wiring
-
Managing bean lifecycle
-
Event handling
Spring and AOP
-
Overview of AOP
-
Creating advice
-
Defining pointcuts
-
Creating introductions
-
Using ProxyFactoryBean
-
Autoproxying
Hibernate Fundamentals
-
Concepts in Object/Relational mapping
-
Overview of Hibernate architecture
-
Setting up and running your first Hibernate application
Configuring Hibernate
-
Hibernate configuration property file
-
Hibernate configuration XML file
-
Database dialects
-
Obtaining a SessionFactory
-
User-provided JDBC connection
-
Using code generation tool
-
Using schema generation tool
-
Using mapping file generation tool
O/R Mapping
-
Overview of the mapping file
-
The id element and primary key
-
Id generation methods
-
Composite id
-
Hibernate data types
-
Custom value types
-
Mapping for collections and associations
-
Mapping for rich associations
-
Component mapping
-
Inheritance mapping
Manipulating and Querying Persistent Data
-
Persistent classes
-
Loading an object
-
Find methods
-
The Query interface
-
Performing CRUD operations
-
Criteria Queries
-
Using native SQL query
-
Using lifecycle and interceptor callbacks
-
Transactions and concurrency
The Hibernate Query Language (HQL)
-
The select clause
-
The from clause
-
The where clause
-
Expressions
-
Aggregate functions
-
Sorting, grouping, etc.
-
Subqueries
Spring and Data Access
-
Spring and O/R mapping support
-
Integrating Hibernate with Spring
| |
Managing Transactions and Resources
-
Programming transactions in Spring
-
Declaring transactions
-
DataSource declarations
Remoting and Accessing Enterprise Services
-
Overview of Spring Remoting
-
Remoting and RMI
-
Remoting with other techniques
-
Accessing JNDI
Spring Web Framework
-
General architecture
-
Controllers
-
Handle mappings
-
Handlers
-
View resolver
-
Data bindings
Integrating Spring with Other Web Frameworks
-
Spring and JavaServer Faces
Overview of JSF
-
Overview of JSF Framework
-
First look at a JSF sample application
-
Requirements to run a JSF-based Web application
The JSF Lifecycle
-
The JSF controller servlet
-
Request tree construction
-
Applying request values
-
Handling request events
-
Processing validations
-
Invoking application and updating models
-
Rendering responses
JSF User Interface Component Model
-
Overview of JSF component model classes
-
Rendering model
-
Conversion model
-
Event model
-
Validation model
-
Standard user interface components
-
JSF per-request context info
JSF Event Handling
-
Java 2 event model
-
Event objects and event listeners in JSF
-
Writing listeners for UI components
Advanced Tabular Data Processing
-
Bringing your own data model
-
Editing specific cells
-
Processing row events
-
Dealing with large tables: sorting, scrolling, etc.
|
|
|
|