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

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:

主站蜘蛛池模板: 延川县| 九江市| 北海市| 台州市| 桂阳县| 蒙阴县| 龙门县| 勃利县| 教育| 乌拉特中旗| 武汉市| 崇仁县| 吴旗县| 余姚市| 石家庄市| 旬邑县| 罗甸县| 安徽省| 郯城县| 永昌县| 抚顺市| 吴桥县| 昭苏县| 安图县| 吕梁市| 石河子市| 嵊州市| 沙河市| 麻城市| 洪泽县| 万源市| 门头沟区| 银川市| 轮台县| 邹平县| 文水县| 牡丹江市| 道真| 广元市| 时尚| 福安市|