Return-Path: Mailing-List: contact ibatis-user-java-help@incubator.apache.org; run by ezmlm Delivered-To: mailing list ibatis-user-java@incubator.apache.org Received: (qmail 35903 invoked by uid 99); 6 Dec 2004 17:18:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mail09.svc.cra.dublin.eircom.net (HELO mail09.svc.cra.dublin.eircom.net) (159.134.118.25) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 06 Dec 2004 09:18:22 -0800 Received: (qmail 85395 messnum 1997042 invoked from network[83.71.72.86/83-71-72-86.bas1.chf.cork.eircom.net]); 6 Dec 2004 17:18:20 -0000 Received: from 83-71-72-86.bas1.chf.cork.eircom.net (HELO ?127.0.0.1?) (83.71.72.86) by mail09.svc.cra.dublin.eircom.net (qp 85395) with SMTP; 6 Dec 2004 17:18:20 -0000 Message-ID: <41B49460.2040506@corksurf.com> Date: Mon, 06 Dec 2004 17:18:24 +0000 From: Peter Bracken Reply-To: bracken@corksurf.com Organization: CorkSurf User-Agent: Mozilla Thunderbird 1.0RC1 (Windows/20041201) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ibatis-user-java@incubator.apache.org Subject: Re: iBatis Connection Management References: <41B44050.5080607@corksurf.com> <16178eb104120606184e468508@mail.gmail.com> In-Reply-To: <16178eb104120606184e468508@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked I think I got it, I was parseing the config file every time I called my getSqlMapClient() method. I'd been meaning to fix that but didn't think it was a big priority. Put this one down to extremely bad coding on my part! :) Sorry about that! Peter Clinton Begin wrote: >Hi Peter, > >I've never experienced this, nor have I heard of anything similar. >Which datasource implementation are you using: SimpleDataSource, or >DBCP? > >In either case I'd expect it to work. Make sure though that you've >properly ended your transaction within a finally block. For example: > >try { > sqlMapClient.startTransaction(); > // ... do some work > sqlMapClient.commitTransaction(); >} finally { > sqlMapClient.endTransaction(); >} > >Cheers, >Clinton > >