Search code examples
javaelasticsearchdb2connectionpool

Connection pool to database without application server in java


I'm developing an application in java that will run without an application server (it's not a web application). Usually, application servers provides database connection pool, which is faster than create a new connection each time you need to run a query.

I would like to know if there's something similar when developing desktop applications.

My project connects to database (DB2) and Elastic Search. Both needs a connection creation. Something that works with both would be great.

I really appreciate any help.


Solution

  • I think Apache Commons DBCP will solve with problem with JDBC connection pool.

    Thank you "Rafael Moita" for the tip.