Mysql multithreaded connection pool for Java applications

. I developed a Java application that loads html from the specified urls.I can be loaded into multithreads. But now I want to use the connection pool as well. I searched for various ways that we can perform pooling, but all are connected to client server applications (using apache, Tomcat, etc.). But I only need this on my only car. I just want to load html and paste into the mysql database in streams. How can i do this.

+4
source share
2 answers

You can use BoneCP , C3P0 or DBCP to give you a little look. Each has its own advantages and disadvantages, so you decide which one is best for your situation.

+1
source

take a look at JNDI this connection and this link

JNDI's basic concept is working with connection pooling

where you create a database connection pool and reuse existing connections

0
source

Source: https://habr.com/ru/post/1483171/


All Articles