Connection Pool in AEM
Hi Everyone,
I am working to establish/integrate JDBC connection pool in AEM.
- Installed JDBC driver
- Configured the Day Commons JDBC Connections Pool configuration.
- Created a simple OSGI service to initialize DataSource and reading connection from a util.
I can get the connection from the connection pool and the code is working fine.
My question is,
- Is there any AEM recommended code base available for connection pool configuration/set up or DataSource OSGI service?
- Currently we are creating connection and closing it in finally block, after changing into Connection Pool also, It is recommended to close the connection in the logic finally block after use right?
- Few articles mentioned, if we close the connection from logic, it wil not actually close the connection, but connection pool will get notified and it will keep the connection for next use..Is it right
Can someone provide some Adobe recommened documentation for the same.

