Magazine
 
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

  1. JSF can be used to implement presentation layer because it fits into the MVC design pattern.
  2. Spring Framework can be used in the business logic tier to manage business objects, resource management.
  3. 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.

  1. About the Application
  2. Application Architecture
  3. Downloading MyFaces and creating web
    application
  4. Adding Spring and Hibernate Capabilities
  5. Setting up MySql database and creating
    tables
    Developing Presentation Layer
  6. Developing Login and Registration form
    and backing beans
    Developing Business Layer
  7. Writing Business Objects
    Integration Tier of the Application
  8. Implementing Integration tier with
    Hibernate
  9. Integrating JSF, Spring and Hibernate
  10. Integrating presentation layer
  11. Integrating Business Logic/Integration Tier
  12. 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
 
previous
index
next
 
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