I have a database connection which is parameterized. These parameters (host, database, username, port and password) come from a file that has the credentials for some 10 databases. So, for every row, the db connection is updated with the credentials for the database in that row. This works well when i do not use connection pooling in my db connection. i.e. executes for db1, db2 ... db10. Whereas with connection pooling enabled, the db connection remains the same as in the first row for all the 10 rows in file i.e. db1, db1 ... db1 remains. Please note that connection pooling is a must in my case as disabling it gives other connection I/O related errors. Please suggest what could be done to achieve this.