- 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.
- pcDuino開發(fā)實戰(zhàn)
- Linux操作系統(tǒng)基礎
- Linux運維實戰(zhàn):CentOS7.6操作系統(tǒng)從入門到精通
- Social Media Mining with R
- Puppet實戰(zhàn)
- 阿里云數(shù)字新基建系列:云原生操作系統(tǒng)Kubernetes
- 新手易學:系統(tǒng)安裝與重裝
- 混沌工程:復雜系統(tǒng)韌性實現(xiàn)之道
- 移動應用UI設計模式(第2版)
- Windows 7實戰(zhàn)從入門到精通(超值版)
- 鴻蒙操作系統(tǒng)設計原理與架構
- Zabbix監(jiān)控系統(tǒng)之深度解析和實踐
- Linux網(wǎng)絡操作系統(tǒng)項目教程(RHEL 6.4/CentOS 6.4)(第2版)
- 鴻蒙應用程序開發(fā)
- Linux指令從入門到精通(“十二五”國家重點圖書出版規(guī)劃項目)