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

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:

主站蜘蛛池模板: 贡山| 蕉岭县| 浪卡子县| 遂昌县| 黄山市| 罗田县| 马龙县| 曲阜市| 将乐县| 江达县| 新乡县| 铜鼓县| 太原市| 茂名市| 崇仁县| 莒南县| 临猗县| 洪江市| 巴林左旗| 肥城市| 威远县| 定州市| 开原市| 阳山县| 大宁县| 福鼎市| 略阳县| 云和县| 太和县| 醴陵市| 吴桥县| 赣州市| 黑水县| 微博| 襄汾县| 清水县| 花莲市| 华阴市| 封开县| 上高县| 肇州县|