Which datasource best supports multi-threading in Spring?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To support multi-threading you would need to use a data source that supports connection pooling so that each thread can use its own connection.
The most common database connection pools are Commons DBCP and C3p0 and can be easily integrated with Spring.