Commit fb7d256e1fb07ae6cbb803ef20afd6bc6d726342

ROO-2433: DBCP connection pool is not aware when a database connection is unavailable
addon-jpa/src/main/java/org/springframework/roo/addon/jpa/JpaOperationsImpl.java
(7 / 0)
  
143143 dataSource.appendChild(createPropertyElement("url", "${database.url}", appCtx));
144144 dataSource.appendChild(createPropertyElement("username", "${database.username}", appCtx));
145145 dataSource.appendChild(createPropertyElement("password", "${database.password}", appCtx));
146 dataSource.appendChild(createPropertyElement("validationQuery", "SELECT 1", appCtx));
147 dataSource.appendChild(createPropertyElement("testOnBorrow", "true", appCtx));
148 dataSource.appendChild(createPropertyElement("testOnReturn", "true", appCtx));
149 dataSource.appendChild(createPropertyElement("testWhileIdle", "true", appCtx));
150 dataSource.appendChild(createPropertyElement("timeBetweenEvictionRunsMillis", "1800000", appCtx));
151 dataSource.appendChild(createPropertyElement("numTestsPerEvictionRun", "3", appCtx));
152 dataSource.appendChild(createPropertyElement("minEvictableIdleTimeMillis", "1800000", appCtx));
146153 root.appendChild(dataSource);
147154 if (dataSourceJndi != null) {
148155 dataSourceJndi.getParentNode().removeChild(dataSourceJndi);

Comments

Add a new comment:

Login or create an account to post a comment

Add your comment