Information Technology Reference
In-Depth Information
Design and Implementation of Middle Layer for Off-line
Query Based on JSF and Hibernate Framework
Zheqiong Yan, Jia Chen, and Minggang Wang
Dalian Maritime University, Dalian 116026, Liaoning, China
yanzheqiong@gmail.com
Abstract. The J2EE hierarchical framework of enterprise level makes software
development very difficult and low-level efficiency. For this reason, in the
small and medium web systems, it will be more convenient with JSF and Hi-
bernate Integration Framework. But there is still not a standard about how to
transfer data between JSF and Hibernate, so in this paper, a Middle Layer for
off-line query based on JSF and Hibernate integrate framework will be pro-
posed and its architecture and principle will be analyzed in detail combined
with practical examples.
Keywords: JSF, Hibernate, off-line query, Middle Layer.
1 The Necessary of Middle Layer
1.1 The Necessary of Integrating JSF and Hibernate
According to the knowledge of JSF and Hibernate, it's clear that JSF framework
based on MVC design pattern isolate the sources program and business processes by
controlling the configuration file, thus system is easy to be maintained and modified.
Though stand out in the view layer, JSF still leaves much to be desired in the
model layer. Compared with JSF, Hibernate has many advantages in model layer, it's
basically an ORM tool used for OR mapping which allows you to perform database
activates without bothering about the Database change. But if only develop system
using Hibernate, the logic of system is still confused, the process and view don't be
separated effectively, as a result, the coupling degree isn't be decreased.
As a solution, integrating JSF and Hibernate is proposed. JSF, the infrastructure of
whole system, is in charge of implementing the MVC pattern, and Hibernate is used
to support the persistence layer. Thus, the coupling degree can be deceased by JSF
and Hibernate is responsible for reducing the difficulty of processing business and
accessing database, so that it's convenient to interactive with database. Based on this,
the integrating framework can be useful and convenient in theory, but how to
integrate two framework and transfer data between them in practice is becoming a
main issue. The Middle Layer is to solve this problem. As the initial aim of
integrating is to simplify the process of accessing database while sticking to decrease
the coupling degree and definitude multilayer framework, so the Middle Layer is a
MVC-based design.
 
Search WWH ::




Custom Search