- 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.
- Containerization with LXC
- Linux運維實戰(zhàn):CentOS7.6操作系統(tǒng)從入門到精通
- 每天5分鐘玩轉(zhuǎn)Kubernetes
- FreeRTOS實時內(nèi)核應(yīng)用指南
- Windows 7案例教程
- Application Development in iOS 7
- 注冊表應(yīng)用完全DIY
- Advanced TypeScript Programming Projects
- Linux基礎(chǔ)使用與案例
- Distributed Computing with Go
- Heroku Cloud Application Development
- Implementing Domain-Specific Languages with Xtext and Xtend(Second Edition)
- Mastering Eclipse Plug-in Development
- 深入理解嵌入式Linux設(shè)備驅(qū)動程序
- Hyper-V Replica Essentials