Thanks Vasya.
One of my problems is that I can't really find a tutorial that steps through integrating it properly, lots of fragments of code with "and now your done." at the end :)
Couple of questions, are you using
transaction {
}
and then modifying the squeryl factory class to something like this?
SessionFactory.concreteFactory = Some(() => getConnection)
where getConnection is making a call to the connection pool, something like:
def getConnection = {
Session.create(cpds.getConnection, new MySQLAdapter)
}
I think I've narrowed it down to the following 2 scenarios:
o if I use the connection pool from a singleton I don't get the double close
o if I use it in a case class I get the double close.
Would appreciate any pointers.
Thanks, Jason.