Minor fix

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@129170 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-06-20 10:13:12 +00:00
parent e63f7de731
commit 90310c6f6e
1 changed files with 4 additions and 2 deletions

View File

@ -89,7 +89,7 @@ public class CKanUtilsImpl implements CKanUtilsInterface{
connectionPool.setUsername(CKAN_DB_USER);
connectionPool.setPassword(CKAN_DB_PASSWORD);
connectionPool.setUrl(url);
connectionPool.setInitialSize(10);
connectionPool.setInitialSize(20);
// build the client
client = new CkanClient(CKAN_CATALOGUE_URL);
@ -103,6 +103,7 @@ public class CKanUtilsImpl implements CKanUtilsInterface{
*/
private Connection getConnection() throws SQLException{
logger.debug("CONNECTION REQUEST");
return connectionPool.getConnection();
}
@ -119,7 +120,8 @@ public class CKanUtilsImpl implements CKanUtilsInterface{
}catch(Exception e){
logger.error("Unable to close this connection ", e);
}
}
}else
logger.debug("CONNECTION WAS NULL");
}