pullrequest/resthub — Issue #41: Fix dataSource definition for database connections timeouts
Author: bclozel
Created: 2011-10-25 08:18:47+00:00
State: open

A user reports this problem: when an application has no traffic for a long period of time, database connections timeouts occur and the pool management layer returns "dead connections".

As mentionned [here](http://stackoverflow.com/questions/1152124/jdbc4-communicationsexception) and [here](http://stackoverflow.com/questions/4950396/tomcat-configuration-using-dbcp), adding properties in the dataSource definition should solve the problem:

Should we add these properties to RESThub dataSource definition?