J2EEアプリケーションは、コンテナの接続管理機能を使用する代わりに、接続を直接管理する。
J2EE標準では、コネクションを直接管理することを禁じています。そのため、アプリケーションはコンテナのリソース管理機能を使用してリソースへの接続を取得する必要があります。すべての主要なWebアプリケーションコンテナは、リソース管理フレームワークの一部としてプールされたデータベース接続管理を提供します。アプリケーションでこの機能を複製するのは難しく、エラーが発生しやすいため、J2EE標準では禁止されています。
The J2EE application directly manages connections, instead of using the container's connection management facilities.
The J2EE standard forbids the direct management of connections. It requires that applications use the container's resource management facilities to obtain connections to resources. Every major web application container provides pooled database connection management as part of its resource management framework. Duplicating this functionality in an application is difficult and error prone, which is part of the reason it is forbidden under the J2EE standard.