From: David McLaughlin <mesave...@gmail.com>
Date: Sun, 1 May 2011 09:03:09 -0700 (PDT)
Local: Sun, May 1 2011 12:03 pm
Subject: Re: MySQL connection pooling with C3P0
Hi Dustin,
The problem here is that you are not wrapping your Squeryl statements
https://github.com/max-l/Squeryl/blob/master/src/main/scala/org/squer...
So all you really need to do in your intitialize method is set up the
http://squeryl.org/sessions-and-tx.html
Using the transaction abstraction also has the benefit of not having
Cheers,
On Apr 27, 4:36 pm, Dustin Withers <fadedd...@gmail.com> wrote:
> Where should I bind that variable? In a companion object to the
> Filter? Or should I still do it in my Filters class? Like: > class DailyLifFilter extends ScalatraFilter with ScalateSupport with > DatabaseInit { > val dlSession = new DynamicVariable[Session](null) > before {
> after {
> }
> On Apr 27, 9:12 am, Wille Faler <wille.fa...@gmail.com> wrote:
> > Hmm, making it an instance variable of your filter is not thread-safe, so
> > On 27 April 2011 15:10, Dustin Withers <fadedd...@gmail.com> wrote:
> > > Should something like the following work?
> > > class DailyLifFilter extends ScalatraFilter with ScalateSupport {
> > > before {
> > > after {
> > > Thanks,
> > > On Apr 27, 9:01 am, Wille Faler <wille.fa...@gmail.com> wrote:
> > > > session.close
> > > > On 27 April 2011 14:37, Dustin Withers <fadedd...@gmail.com> wrote:
> > > > > Hello all,
> > > > > I'm new to Scala and new to Scalatra, heck I'm kinda new to Java web
> > > > > Originally I wasn't using any kind of connection pooling and I
> > > > > I've played with all of C3P0's settings and I can stave off the
> > > > > Any thoughts? Should I bother the people on the Squeryl mailing list?
> > > > > Thanks much for your time,
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||