官术网_书友最值得收藏!

The application architecture

Our application will import some stock quotations daily; it will then expose them and allow you to update them through a web service.

To implement it, we will use a standard Java EE architecture:

  • The persistence layer will use JPA 2.2 and store the data in a MySQL database.
  • A service layer will implement the business logic and orchestrate the persistence layer. It will rely on the following:
    • Java Transaction API (JTA) 1.2 for transactionality
    • Context and Dependency Injection 2.0 (CDI) for Inversion of Control (IoC)
    • Bean Validation 2.0 for validations
  • A front layer will expose a part of the service layer through HTTP. It will rely on the following:
    • JAX-RS 2.1 for stateless endpoints
    • WebSocket 1.1 for stateful communications
    • JSON-B 1.0 for marshalling/unmarshalling

Here is a picture summarizing this structure:

主站蜘蛛池模板: 延边| 张家港市| 济源市| 阿巴嘎旗| 诸暨市| 翼城县| 秦皇岛市| 辛集市| 泾阳县| 上蔡县| 晋中市| 康乐县| 乐昌市| 盐城市| 时尚| 龙门县| 松溪县| 大埔区| 桐庐县| 绵阳市| 庆云县| 临沧市| 张掖市| 平乡县| 闻喜县| 宁远县| 乳山市| 孝感市| 视频| 临城县| 栾城县| 新晃| 韩城市| 潞西市| 遂宁市| 青河县| 宜兰县| 新疆| 和平县| 顺昌县| 柳林县|