Jul 18, 2018

Creating database Connection Pool by annotation or xml

The connection pools can be created as per application resources. If you need global pools, you can create them inside Application server. Global means they are applicable for all applications.

Using an annotation:
Using an entry in web.xml, ejb-jar.xml or application.xml: