Thanks Pat.
I've read some samples from
http://archive.coreservlets.com/Chapter18.html I see one of their servlet contains the statement
"private ConnectionPool connectionPool;"
then it will get the connection from the pool:
"Connection connection = connectionPool.getConnection();"
But in this way, Will every Servlet create its own pool? Since every servlet create a connectionpool object by "private ConnectionPool connectionPool;"
Or this is just a sample, in real case, i had to move the pool creation statement "private ConnectionPool connectionPool;" to a seperated class (maybe database manager)?
I had to understand this as i've already messed up. Thank you.