swaldman / c3p0

a mature, highly concurrent JDBC Connection pooling library, with support for caching and reuse of PreparedStatements.
http://www.mchange.com/projects/c3p0
Other
1.28k stars 338 forks source link

Added support for JDBC 4.3 beginRequest and endRequest methods. #170

Closed fmeheust closed 6 months ago

fmeheust commented 10 months ago

JDBC 4.3 added the methods beginRequest and endRequest to java.sql.Connection. These methods hint the driver of the beginning and completion of a request (independent unit of work). Connection pooling manager should call these methods on the underlying connection prior to returning a connection to the caller, and when the applications returns the connection back to the connection pool respectively.

This pull request adds request boundaries to C3P0PooledConnectionPool.

swaldman commented 6 months ago

Thanks!

I've reorganized the build quite a bit, so I'm hand-porting these to the latest.

See https://github.com/swaldman/c3p0/commit/6accf5580a8e194ab5f29598f1e5786c24ac051d

fmeheust commented 6 months ago

Thanks!