DataSource or ConnectionPoolDataSource for Application Server JDBC resources
问题 When creating JNDI JDBC connection pools in an application server, I always specified the type as javax.sql.ConnectionPoolDataSource . I never really gave it too much thought as it always seemed natural to prefer pooled connections over non-pooled. However, in looking at some examples (specifically for Tomcat) I noticed that they specify javax.sql.DataSource . Further, it seems there are settings for maxIdle and maxWait giving the impression that these connections are pooled as well.