|
Integrating JSF, Spring and Hibernate |
|
|
Integrating JSF, Spring and Hibernate
This article explains integrating JSF (MyFaces),
Spring and Hibernate to build real world User
Login and Registration Application using
MySQL as database. This application lets the
new user create an account and existing user
access the application by user name and
password. These three frameworks can be
used for different purposes according to the
usefulness and power of individual
frameworks. Like
- JSF can be used to implement
presentation layer because it fits into
the MVC design pattern.
- Spring Framework can be used in the
business logic tier to manage business
objects, resource management.
- Hibernate can be powerful inside the
integration tier. Spring integrates
Hibernate very well.
Let’s see how these have been utilized to
develop our User Login and Registration
Application. Development of this application
has been divided in various steps to
understand it clearly.
- About the Application
- Application Architecture
- Downloading MyFaces and creating web
application
- Adding Spring and Hibernate Capabilities
- Setting up MySql database and creating
tables
Developing Presentation Layer
- Developing Login and Registration form
and backing beans
Developing Business Layer
- Writing Business Objects
Integration Tier of the Application
-
Implementing Integration tier with
Hibernate
- Integrating JSF, Spring and Hibernate
- Integrating presentation layer
- Integrating Business Logic/Integration
Tier
- Downloading the full code of this
application
|
|
1. About the Application
a) User Login Module
In this module, the user is asked to fill its user
ID and password to proceed further in the
application.
If the user fills correct user name and password
then it welcomes the user and displays the page
like the following.
|
|
|
Jan
2008 | Java Jazz Up | 51 |
|
|
|
View All Topics |
All Pages of this Issue |
Pages:
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53 ,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63 ,
64,
65 ,
66 ,
67 ,
68 ,
69 ,
70 ,
71 ,
72 ,
73 ,
74 ,
75 ,
76 ,
77 ,
78 ,
79 ,
80 ,
81 ,
82 ,
83,
84 ,
85 ,
86,
87 ,
88,
89 ,
90 ,
91 ,
92 ,
93 ,
94 ,
95 ,
96 ,
97 ,
98 ,
99 ,
100 ,
101 ,
102 ,
103,
104 ,
105 ,
106,
107,
Download PDF |
|
|
|
|
|
|
|
|
|