java - PostgreSQL JDBC pooling -


reading documentation on postgresql documentation here read following:

as well, connections requested users other default configured user not pooled.

i couldn't find more information on this. default configured user? user logged in db with?

so in following example:

jdbc3poolingdatasource source = new jdbc3poolingdatasource(); source.setdatasourcename("a data source"); source.setservername("localhost"); source.setdatabasename("test"); source.setuser("testuser"); 

the default configured user testuser?

the default user 1 set on datasource itself, datasource has more 1 method obtain connection:

  1. getconnection()
  2. getconnection(string username, string password)

the first method uses (default) user configured on datasource. based on quoted documentation implementation use, method provide connection connection pool.

the second method takes user name , password, , indicated documentation quoted connection not pooled (except maybe if username , password provided matches default user of datasource).


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -