title: Long times on get pooled connection from datasource
body: <p>Lately we have  been having a lot of lag with getting pooled connections from datasource. Is this a db issue ? Would slow DB be a cause of this or should we check application code for a fix for this. This happens intermittently though. Would increasing pool size work or is there any other fix or checks.
  Thanks </p>
  
  <pre><code>&lt;service interface="javax.sql.DataSource"&gt;
         &lt;service-properties&gt;
            &lt;entry key="osgi.jndi.service.name" value="jdbc/Idn/pfile/DataSource" /&gt;
        &lt;/service-properties&gt;
        &lt;bean class="com.ibm.db2.jcc.DB2DataSource"&gt;
            &lt;property name="serverName" value="${host}" /&gt;
            &lt;property name="portNumber" value="${port}" /&gt;
            &lt;property name="databaseName" value="${dbName}" /&gt;
            &lt;property name="currentSchema" value="${schema}" /&gt;
            &lt;property name="user" value="${user}" /&gt;
            &lt;property name="password" value="${password}" /&gt;
            &lt;property name="driverType" value="${drivertype}" /&gt;
            &lt;property name="dataSourceName" value="${dataSource.name}" /&gt;
        &lt;/bean&gt;
   &lt;/service&gt;    
  </code></pre>