Jpetstore 5.0 three-tier architecture

Source: Internet
Author: User
Application system using three-tier structure has been accepted by more and more developers, however, in the actual development, there are many projects for various reasons, the design of the three-tier structure does not show its own advantages, but increased the complexity of the system, reducing the maintainability of the system.   In these projects, whether the designer of the project really understands the three-tier structure, whether the project executor can develop the system according to the designer's idea, is the important factor that the three-tier structure can show its advantage.   Jpetstore 5.0 uses a very clear three-layer structure to delve deeper into the structure of Jpetstore 5.0, which is of great benefit to both designers and developers. From the Jpetstore 5.0 package can be clearly seen in each layer: The performance layer: Com.ibatis.jpetstore.presentation Business layer: Com.ibatis.jpetstore.service Persistence layer: Com.ibatis.jpetstore.persistence There are also domain models: Com.ibatis.jpetstore.domain in the classic three-tier architecture, the presentation layer invokes the business layer, and the business layer calls the persistence layer.     Performance layer and struts, velocity, JSP, etc. combined to complete the presentation of the page, the persistence layer and JDBC, Hibernate, Ibatis, JDO, etc. complete with the relational database access. The application of the three-tier structure with the DBMS and the Web is a total of five layers, each layer calls only the layer below it, usually at the level of calls, but not the reverse call. The domain model, however, spans multiple layers and transmits data between tiers through the domain model, which greatly reduces the coupling between the layers compared to the transfer of specific objects (such as ServletRequest, ServletContext to the business layer, or even the persistence layer).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.