alluvial-nortel
学校代码:
10128
学
号:
本科毕业设计外文文献翻译
二
〇
一
五
年
一
月
内蒙古工业大学本科毕业设计外文文献翻译
The Test Library Management System of
Framework Based on SSH
The
application system features in small or medium-
sized enterprise lie in the gre
ater
flexibility and safety high performance-price
ratio. Traditional J2EE framework c
an
not adapt to these needs, but the system
application based on
SSH(Struts+Spring+
Hibernate) technology
can better satisfy such needs. This paper analyses
some integra
tion theory and key
technologies about SSH, and according to the
integration construc
ts a lightweight
WEB framework, which has integrated the three
kinds of technology ,
forming the
lightweight WEB framework based on SSH and gaining
good effects in p
ractical applications.
Introduction
Generally the
J2EE platform[27] used in large enterprise
applications, can well s
olve the
application of reliability, safety and stability,
but its weakness is the price hig
h and
the constructing cycle is long. Corresponding to
the small or medium enterprise
applications, the replace approach is
the system framework of lightweight WEB,
inclu
ding the more commonly used
methods which are based on the Struts and
Hibernate.
With the wide application of
Spring, the three technology combination may be a
bette
r choice as a lightweight WEB
framework. It uses layered structure and provides
a go
od integrated framework for Web
applications at all levels in minimizing the
Interlaye
r coupling and increasing the
efficiency of development. This framework can
solve a l
ot of problems, with good
maintainability and scalability. It can solve the
separation o
f user interface and
business logic separation, the separation of
business logic and data
base operation
and the correct procedure control logic, etc. This
paper studies the tech
nology and
principle of Struts and Spring and Hibernate,
presenting a proved lightwei
ght WEB
application framework for enterprise.
Hierarchical Web Mechanism
Hierarchical Web framework including
the user presentation layer, business
logic
layer, data persistence layer
,expansion layer etc, each layer for different
function, res
pectively to finish the
whole application. The whole system are divided
into different l
1
内蒙古工业大学本科毕业设计外文文献翻译
ogic module with relatively independent
and mutual, and each module can be
implem
ented according to different
design. It can realize the system parallel
development, rap
id integration, good
maintainability, scalability.
Struts
MVC Framework
To ensure the reuse and
efficiency of development process, adopting J2EE
techn
ology to build the Web application
must select a system framework which has a good
performance . Only in this way can we
ensure not wasting lots of time because of
adju
sting configuration and achieve
application development efficiently and quickly.
So, p
rogrammers in the course of
practice got some successful development pattern
which
proved practical, such as MVC and
O/R mapping, etc; many technologies, including
S
truts and Hibernate frameworks,
realized these pattern. However, Struts framework
on
ly settled the separation problem
between view layer and business logic layer,
control
layer, did not provide a
flexible support for complex data saving process.
On the contr
ary, Hibernate framework
offered the powerful and flexible support for
complex data
saving process. Therefore,
how to integrate two frameworks and get a
flexible, low-co
upling solutions
project which is easy to maintain for information
system, is a researc
h task which the
engineering staff is studying constantly.
Model-View-Controller (MVC) is a
popular design pattern. It divides the
interact
ive system in three components
and each of them specializes in one task. The
model c
ontains the application data and
manages the core functionality. The visual display
of t
he model and the feedback to the
users are managed by the view. The controller not
o
nly interprets the inputs from the
user, but also dominates the model and the view to
c
hange appropriately. MVC separates the
system functionality from the system
interfac
e so as to enhance the system
scalability and maintainability. Struts is a
typical MV
C frame[32], and it also
contains the three aforementioned components. The
model le
vel is composed of JavaBean and
EJB components. The controller is realized by
actio
n and ActionServlet, and the view
layer consists of JSP files. The central
controller co
ntrols the action
execution that receives a request and redirects
this request to the appr
opriate module
controller. Subsequently, the module controller
processes the request a
nd returns
results to the central controller using a JavaBean
object, which stores any o
2
内蒙古工业大学本科毕业设计外文文献翻译
bject to be presented in the view layer
by including an indication to module views
that
must be presented. The central
controller redirects the returned JavaBean object
to th
e main view that displays its
information.
Spring Framework
technology
Spring is a lightweight
J2EE application development framework, which uses
the
model of Inversion of Control(IoC)
to separate the actual application from the
Config
uration and dependent regulations
of the application. Committed to J2EE application
a
t all levels of the solution, Spring
is not attempting to replace the existing
framework,
but rather
“welding”
the object of J2EE
application at all levels together through the
P
OJO management. In addition,
developers are free to choose Spring framework for
so
me or all, since Spring modules are
not totally dependent.
As a major
business-level detail, Spring employs the idea of
delay injection to as
semble code for
the sake of improving the scalability and
flexibility of built systems.
Thus, the
systems achieve a centralized business processing
and reduction of code reu
se through the
Spring AOP module.
Hibernate Persistent
Framework
Hibernate is a kind of open
source framework with DAO design patterns to
achie
ve mapping(O/R Mapping) between
object and relational database.
During
the Web system development, the tradition approach
directly interacts wit
h the database by
JDBC .However, this method has not only heavy
workload but
also complex SQL codes of
JDBC which need to revise because the business
logic sli
ghtly changes. So, whatever
development or maintain system are inconvenient.
Consi
dering the large difference
between the object-oriented relation of java and
the structu
re of relational database,
it is necessary to introduce a direct mapping
mechanism bet
ween the object and
database, which this kind of mapping should use
configuration fil
es as soon as
possibility, so that mapping files will need
modifying rather than java so
urce codes
when the business logic changes in the future.
Therefore, O/R mapping pat
tern emerges,
which hibernate is one of the most outstanding
realization of architectur
e.
3
内蒙古工业大学本科毕业设计外文文献翻译
It encapsulates JDBC with lightweight ,
making Java programmer operate a
relati
onal database with the object
oriented programming thinking. It is a a
implementation
technology in the
lasting layer. Compared to other lasting layer
technology such as JD
BC, EJB, JDO,
Hibernate is easy to grasp and more in line with
the object-oriented pr
ogramming
thinking. Hibernate own a query language (HQL),
which is fully object-or
iented. The
basic structure in its application as shown in
figure6.1.
Hibernate is a data
persistence framework, and the core technology is
the object /
relational database
mapping(ORM). Hibernate is generally considered as
a bridge bet
ween Java applications and
the relational database, owing to providing
durable data se
rvices for applications
and allowing developers to use an object-oriented
approach to t
he management and
manipulation of relational database. Furthermore,
it furnishes an
object-oriented query
language-HQL.
Responsible for the
mapping between the major categories of Java and
the relatio
nal database, Hibernate is
essentially a middle ware providing database
services. It su
pplies durable data
services for applications by utilizing databases
and several profiles
, such as hibernate
properties and XML Mapping etc..
Web
services technologies
The
introduction
of
annotations
into
Java
EE
5
makes
it
simple
to
create
sophisticated Web service endpoints and
clients with less code and a shorter learning
curve than was possible with earlier
Java EE versions. Annotations
—
first introduced
in Java SE 5
—
are modifiers you can add to your code as
metadata. They don't affect
program
semantics directly, but the compiler, development
tools, and runtime libraries
can
process them to produce additional Java language
source files, XML documents,
or other
artifacts and behavior that augment the code
containing the annotations (see
Resources
). Later in the
article, you'll see how you can easily turn a
regular Java class
into a Web service
by adding simple annotations.
Web
application technologies
Java EE 5
welcomes two major pieces of front-end technology
—
JSF and JSTL
—
into
the
specification
to
join
the
existing
JavaServer
Pages
and
Servlet
4
内蒙古工业大学本科毕业设计外文文献翻译
specifications.
JSF
is
a
set
of
APIs
that
enable
a
component-based
approach
to
user-interface
development.
JSTL
is
a
set
of
tag
libraries
that
support
embedding
procedural
logic,
access
to
JavaBeans,
SQL
commands,
localized
formatting
instructions, and
XML processing in JSPs. The most recent releases
of JSF, JSTL, and
JSP
support
a
unified
expression
language
(EL)
that
allows
these
technologies
to
integrate more easily
(see Resources).
The cornerstone of Web
services support in Java EE 5 is JAX-WS 2.0, which
is a
follow-on
to
JAX-RPC 1.1.
Both
of
these
technologies
let
you
create
RESTful
and
SOAP-
based
Web
services
without
dealing
directly
with
the
tedium
of
XML
processing and data binding inherent to
Web services. Developers are free to continue
using
JAX-RPC
(which
is
still
required
of
Java
EE
5
containers),
but
migrating
to
JAX-WS is strongly recommended.
Newcomers to Java Web services might as well
skip JAX-RPC and head right for JAX-WS.
That said, it's good to know that both of
them support SOAP 1.1 over HTTP 1.1 and
so are fully compatible: a JAX-WS Web
services client can access a JAX-RPC
Web services endpoint, and vice versa.
The advantages of JAX-WS over JAX-RPC
are compelling. JAX-WS:
?
Supports the SOAP 1.2 standard (in
addition to SOAP 1.1).
?
Supports XML over HTTP. You can bypass
SOAP if you wish. (See the
article
more information.)
?
Uses
the
Java
Architecture
for
XML
Binding
(JAXB)
for
its
data-mapping
model.
JAXB
has
complete
support
for
XML
schema
and
better
performance (more on that in a moment).
?
Introduces
a
dynamic
programming
model
for
both
server
and
client.
The
client
model
supports
both
a
message-oriented
and
an
asynchronous
approach.
?
Supports
Message
Transmission
Optimization
Mechanism
(MTOM),
a
W3C
recommendation
for
optimizing
the
transmission
and
format
of
a
SOAP
5
alluvial-nortel
alluvial-nortel
alluvial-nortel
alluvial-nortel
alluvial-nortel
alluvial-nortel
alluvial-nortel
alluvial-nortel
-
上一篇:部编版八年级下册文言文对比阅读训练答案.docx
下一篇:ACCA重点讲解-p1