I am new to
java. I have recently learned
JDBC connection pool in
tomcat.
To make code reuse I want to share the connection among all
servlets without any conflict.
Here My code snippet:
I am calling the getConnection method from different servlets like
Is this right way to do. Or I will get any problem due to concurrent threads.