connection ooling with tomcat
Posted on 2004-08-19
Hi, I understand that to get connection pooling to work with tomcat I need to modify some configuration files.
I have docs on how to do that , so thats fine.
My question is to do with whether the methods used to call the getConnection object should be synchronized or not.
Currently the getConnection method is called using synchronized methods. so that only one method can be dealing with it at one time.
Am i correct in htinking, once connection pooling is enabled, the methods which call cetConnection need not be synchronized?
The second part iof my question is what will happen if say, I have configured 15 connections to be in the pool and there comes a time when 16 are needed? will the last method to request a connection just have to wait its turn?
If so, how will i be able to test if it is working?