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

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:

主站蜘蛛池模板: 商洛市| 连南| 玉溪市| 呼伦贝尔市| 宁河县| 浠水县| 会宁县| 滕州市| 林芝县| 海伦市| 叙永县| 剑阁县| 留坝县| 忻州市| 峨边| 丹东市| 江陵县| 平顶山市| 民乐县| 保靖县| 兴文县| 昌邑市| 长泰县| 都兰县| 洛扎县| 青龙| 临洮县| 班戈县| 潼南县| 珠海市| 抚松县| 临漳县| 南丹县| 建宁县| 阿拉尔市| 鄂州市| 临武县| 虹口区| 德昌县| 锦州市| 兖州市|