Skip to content

Commit

Permalink
1993197-Added properties to validate database connection pool.
Browse files Browse the repository at this point in the history
  • Loading branch information
megha_s committed Jul 1, 2008
1 parent ae16ab9 commit 73a08f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions symmetric/src/main/resources/symmetric-database.xml
Expand Up @@ -26,6 +26,7 @@
<property name="minEvictableIdleTimeMillis" value="${db.pool.min.evictable.idle.millis}"/>
<property name="timeBetweenEvictionRunsMillis" value="120000"/>
<property name="numTestsPerEvictionRun" value="10"/>
<property name="validationQuery" value="${db.validation.query}"/>
</bean>

<bean id="jndiDataSource" class="org.springframework.jndi.JndiObjectFactoryBean"
Expand Down
3 changes: 2 additions & 1 deletion symmetric/src/main/resources/symmetric-default.properties
Expand Up @@ -28,7 +28,8 @@ db.tx.timeout.seconds=7200

# Most symmetric queries have a timeout associated with them. This is the default.
db.sql.query.timeout.seconds=60

#This is the query to validate the database connection in Connection Pool.It is database specific
db.validation.query=
# This is how long a request for a connection from the datasource will wait before
# giving up.
db.pool.max.wait.millis=30000
Expand Down

0 comments on commit 73a08f0

Please sign in to comment.