22 integrating myfaces into spring, Why integrate myfaces into spring, Example of integrating myfaces into spring – HP Integrity NonStop H-Series User Manual

Page 439: Chapter 22: integrating myfaces into spring, Prerequisites, Activities involved

Advertising
background image

22 Integrating MyFaces into Spring

This section describes how a Spring application can use MyFaces to create Views. This is
demonstrated by modifying the EmpInfo application (developed in

Getting Started with Spring

chapter) using the Eclipse IDE.

The following topics are discussed in this section:

Why Integrate MyFaces into Spring

Example of Integrating Axis2/Java with Spring

Why Integrate MyFaces into Spring

MyFaces and Spring have their individual usefulness and capabilities. For example, MyFaces
when used for implementing Presentation Layer and Spring when used for implementing Business
Layer, makes a perfect framework for the development of web application.

This is because MyFaces enables you to create a rich graphical user interface for web application
and Spring uses Plain Old Java Object (POJO) and servlet classes, and other configuration files
to process the business logic in the Business Layer. With features such as IOC, DI, and AOP, the
Spring framework provides an ideal solution for implementing the Business Layer.

Example of Integrating MyFaces into Spring

The EmpInfo application (described in the

Getting Started with Spring

chapter) is a Spring

application that uses Spring managed views.

This section describes how to use MyFaces for managing views of the EmpInfo application.

Prerequisites

The prerequisites for integrating the EmpInfo application with MyFaces are:

Basic knowledge of the Spring and MyFaces frameworks.

EmpInfo application (explained in the

Getting Started with Spring

chapter) developed on

your Windows system.

Following software installed on your NonStop system:
— NonStop iTP WebServer
— NonStop Servlets for Java Server Pages (NSJSP)
— JDBC Type 2 driver for NonStop SQL/MX
— NonStop SQL/MX
— NonStop Server for Java (NSJ)

Following software installed on your Windows system:
— Java Development Kit (JDK)
— JDBC Type 4 driver for NonStop SQL/MX
— Eclipse IDE

Activities involved

Integrating the EmpInfo application with MyFaces, involves the following activities:

Modifying EmpInfo on Windows using Eclipse IDE

Deploying EmpInfo on NonStop

Running EmpInfo on NonStop

Why Integrate MyFaces into Spring

439

Advertising
This manual is related to the following products: