- Java EE 8 High Performance
- Romain Manni Bucau
- 179字
- 2021-06-30 19:14:29
Server resources
At several layers, the server provides your application with some resources. In our quote manager we have our datasource injected into the persistence unit through its JNDI name:
<jta-data-source>java:app/jdbc/quote_manager</jta-data-source>
This datasource can also be injected anywhere else in the code:
@Resource(lookup = "java:app/jdbc/quote_manager")
private DataSource datasource;
But the server manages way more resources. Resources are important because they are provided and handled by the server but used from the application. In other words it is a way to control how the application behaves from the outside of it. It enables you to develop without having to care about the configuration and to tune it later or to adapt it depending on the environment you deploy your application to. The next table lists a subset of the most useful JavaEE resource types which can impact your performances and you can need to watch out if your application uses some of them.

There are other types of resources, but those are the main ones linked to the outside of the application and with performance related configuration, like pooling configuration.
- 全屋互聯:智能家居系統開發指南
- Citrix XenApp Performance Essentials
- Modern Web Testing with TestCafe
- Containerization with LXC
- 零起點學Linux系統管理
- Windows Phone應用程序開發
- Linux系統安全基礎:二進制代碼安全性分析基礎與實踐
- Hands-On UX Design for Developers
- Windows 10從新手到高手
- Java EE 7 Developer Handbook
- 操作系統之哲學原理第2版
- 樹莓派+傳感器:創建智能交互項目的實用方法、工具及最佳實踐
- Gradle Effective Implementations Guide(Second Edition)
- Getting Started with Citrix XenApp 6.5
- 分布式實時處理系統:原理、架構與實現