Hi Andrus, Yay, finding replies to most my questions to this list in my spam folder. Apparently my mail client doesn’t think highly of Cayenne, for shame! :)
I’m going to experiment a little more with this, I’m probably doing something totally wrong. I’ll report my findings if they turn out to be beneficial for someone else. Cheers, - hugi // Hugi Thordarson // http://www.loftfar.is/ <http://www.loftfar.is/> // s. 895-6688 > On 23. jan. 2015, at 12:24, Andrus Adamchik <and...@objectstyle.org> wrote: > > 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 >