Creating a Connection Pool without using a Java EE Application Server

968 Views Asked by At

I'm building a response-time critical multithreaded application in JSE v7 and I need/want to access an SQL Database (via JDBC) with optimal response time - the application is written using JSE for the most part and I want to ideally avoid putting the critical workload through it sat on an App Server. Can I achieve Connection Pooling without a Java EE Application Server or is this the only option?

I have three tables I want to Read, two to update and one to insert.

The desired response time is sub 500ms.

1

There are 1 best solutions below

1
Elliott Frisch On BEST ANSWER

Yes. In no particular order, you might use HikariCP, BoneCP, or c3p0 or Apache DBCP. You may also find these benchmarks helpful (I would take them with a grain of salt).

Praid Salt Mine - The chapel from the saline - Romania