No experience with Play, but this is strange. Cayenne in no way relies on 
permanently open connections. Its interaction with connection pool is scoped to 
a given 'commit' or 'performQuery' method. Within a method it gets a connection 
from the DataSource, selects/commits, then closes the connection (effectively 
returning it to the pool). Next time it will ask the pool for a new connection.

So do you have more details on your problem? Does Play have a concept of a 
connection pool? 

Andrus 

> On Jan 23, 2015, at 1:30 PM, Hugi Thordarson <h...@karlmenn.is> wrote:
> 
> Hi all!
> 
> Does anyone here use Cayenne with Play Framework? In development mode, Play 
> closes the DB connection every time a change is made to the application and 
> creates a new one, making Cayenne lose contact with the DB. Any recommended 
> workarounds for this?
> 
> Cheers,
> - hugi
> 
> // Hugi Thordarson
> // http://www.loftfar.is/ <http://www.loftfar.is/>
> // s. 895-6688

Reply via email to