The development framework provides a good practice for separating the deployment interfaces
(from the service consumer contact) from the service interface (with the business logic of the
application).. The deployment interface in Java is the external representation of the WDSL
interface for services. Classes that implement this interface must represent the class that
implements the service implementation interface. This ensures that all business logic is kept in a
right place. Service interface is a kind of Java interface, representing treasure logic. In most
cases, the deployment interface contains a method subset from the service interface.
Axis 1.2.4 Web Apache service framework is the standard of Web services. To develop Web
services, there are two different methods for first [9]:contract and last contract. The distinction
between first Contract and last WDSL is first created or generated from code. Contract.
When the service consumers or providers of external suppliers, they can use different
techniques to implement a web service (they can use. Net is not Java) [10], the contract first
approach to the development of web service is a good practice.
Four. The integration of the middle layer
Integration with external resources has a variety of technologies, such as database and Web
services. The development framework is called the "integration" layer by the logic layer.. The
goal of this design is: (1) the database access through JDBC or Hibernate must be encapsulated
in the data access object (DAO).. (2) Web services should be as simple as possible. (3) all
external data formats are converted to an application domain object to be limited to this layer. (4)
the simplicity of the application of the test class in this layer unit.
The development framework supports access to the relational database using Hibernate and
direct JDBC calls. Use the template class of the Spring framework: JdbcTemplate and
HibernateTemplate are recommended. When accessing the relational database directly from the
JDBC, the DAOs of the application is proposed to inherit from the Spring framework of the
JdbcDaoSupport. JdbcTemplate class management access database (e.g. PreparedStatement)
resources. The development framework uses the application profile to insert datasource into
DAOs. When using the Hibernate access relational database, the SessionFactory Hiberate is
injected into the application's DAOs by application profile..
Five, the development of life cycl
The focus of the development framework can clearly define the structure of the role and its
interaction in a development team. Three roles are described as follows. The interaction of these
roles is the key to the successful application of the project.. (a) front end developers focus on
JSPs, Action/ActionForm and external Web services. (b) service developers focus on developing
applications and integrating different parts of these services. (c) the integrated document that the
project integrator focuses on mainly to develop, such as DAOs or consumer Web services.
A basic problem in the development is how to develop and integrate code when its
dependencies are not ready or unavailable. Development framework through to declarative
injection simulation object "the structure to solve the problem, and in the process of the
development life cycle with the actual object instead of simulation object. Because our
application is configured by different configuration sets, it becomes possible for this to be. The
framework enables teams to test a component of the development process. This makes it possible