Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 40998 invoked from network); 19 Nov 2009 20:33:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Nov 2009 20:33:46 -0000 Received: (qmail 69454 invoked by uid 500); 19 Nov 2009 20:33:45 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 69383 invoked by uid 500); 19 Nov 2009 20:33:45 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 69375 invoked by uid 99); 19 Nov 2009 20:33:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Nov 2009 20:33:45 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of frengifo@gmail.com designates 209.85.210.188 as permitted sender) Received: from [209.85.210.188] (HELO mail-yx0-f188.google.com) (209.85.210.188) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Nov 2009 20:33:42 +0000 Received: by yxe26 with SMTP id 26so2292788yxe.4 for ; Thu, 19 Nov 2009 12:33:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=NWR4+CIzFkMtGfB0PPil/ADuPvUMj5Iu1EOmxr50VcA=; b=X2DGTVDhZhqHVVFO+sdWO65njys1bbCIPJvSTaROdcwPwHutGHjsuVK2ml0KLXCcN+ qie6BUfReavuq9QWFGPMWBdiw7vXs3qT0OIGf43zY1l5K4oK1zdTQXav/OeKkEJTil0B xAiems6JI4d0GbZJjmFmZ1FNJmGDi7a4ffeQ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; b=BaLW0bmrSeNL8qteFlDnpZ46uv1tJQeeGBmkDhl9cJo0FPvdZ6TVpsHnHsKcBUU44M D6f43S9YNeoK77SqwmOMTqMxRZcPOS5OigsX/W+jv/ystZwOdTN8FHe1c/epNee03QXm C3YzJmO084/PmqWi/oGRZkklqX+THmkiqr4t0= MIME-Version: 1.0 Received: by 10.213.96.202 with SMTP id i10mr1938467ebn.99.1258662800397; Thu, 19 Nov 2009 12:33:20 -0800 (PST) Reply-To: frengifo@gmail.com In-Reply-To: <4B055DF4.8C1D.00A5.0@bop.gov> References: <4B055DF4.8C1D.00A5.0@bop.gov> Date: Thu, 19 Nov 2009 15:33:20 -0500 Message-ID: Subject: Re: iBATIS 2.3.4 issues closing connections From: Fernando Rengifo To: user-java@ibatis.apache.org Content-Type: multipart/alternative; boundary=001636a7d9131c151f0478bf4570 --001636a7d9131c151f0478bf4570 Content-Type: text/plain; charset=ISO-8859-1 Hi Jeff, Thank you very much for your time answering this question. Mine looks as follows: Any ideas? So, if I enable the commitRequired="true" do I have to use startTransaction(), commitTransaction() and endTransaction() at any single SQL? Thank you again. -Fernando Rengifo. On Thu, Nov 19, 2009 at 3:02 PM, Jeff Hibbs wrote: > Fernando - > > I'm no expert, but I had a similar problem using DB2. When we moved from > Sun App servers to Glassfish I started having "open Threads"...Not sure if > this is the same as what you're experiencing, but all I had to do was change > my sqlMapConfig file to add the > > commitRequired="true" parm....so it looks like this: > > > > > > > > I hope this helps...Jeff Hibbs > > >>> Fernando Rengifo 11/19/2009 2:48 PM >>> > Hi all, > > Thank you for your time to read this question. > I really (really) appreciate your help on this. > > I have developed an application using iBATIS (what a great framework!). > The project started on Feb 2009, and since Oct 2009 is under my client's > server. > > We use JNDI to a DB2 iSeries Toolbox DataSource configured under Websphere > 6.1 using j400.jar driver. > > Since yesterday, they have been noticing this problem with some tables at > DB2 (iSeries) server. > "....... *FILE in use". > > They have been making me questions about this issue because they think > iBATIS does not close connections after any transaction. > I have told them about iBATIS documentation, where it says > startTransaction() and endTransaction() are called automatically if we > don't. > > What I can tell you, is that I only use sqlMapper.update(), insert(), > queryForObject(), queryForList() for simple queries. > > For batch queries, I use the startTransaction(), startBatch(), > executeBatch(), commitTransaction(), endTransaction(): > > Am I missing somthing ? Is this related to iBATIS? > > Thank you very much. > > -Fernando Rengifo. > > --001636a7d9131c151f0478bf4570 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Jeff,=A0

Thank you very much for your time answering = this question.

Mine looks as follows:
<transactionManager type=3D"EXTERNAL">
=A0=A0<property name=3D"SetAutoCommitAllowed" value=3D&qu= ot;false"/>
=A0=A0<dataSource type=3D"JNDI"&= gt;
=A0=A0 =A0<property name=3D"DataSource" value=3D= "java:comp/env/jdbc/myapp"/>
=A0=A0</dataSource>
</transactionManager>
<= /div>

Any ideas?

So, if I enabl= e the commitRequired=3D"true" do I have to use startTransaction()= , commitTransaction() and endTransaction() at any single SQL?

Thank you again.

=A0 -Fern= ando Rengifo.


On Thu, Nov 19, 2009 at 3:02 PM, Jeff Hi= bbs <jhibbs@bop.gov<= /a>> wrote:
Fernando -
=A0
I'm no expert, but I had a similar problem using DB2.=A0 When we m= oved from Sun App servers to Glassfish I started having "open Threads&= quot;...Not sure if this is the same as what you're experiencing, but a= ll I had to do was change my sqlMapConfig file to add the
=A0
commitRequired=3D"true" parm....so it looks like this:
=A0
=A0
I hope this helps...Jeff Hibbs

>>> Fernando Rengifo &l= t;frengifo@gmail.co= m> 11/19/2009 2:48 PM >>>
Hi all,

Thank you for your time to read this question.
I really (really) appreciate your help on this.

I have developed an application using iBATIS (what a great framework!)= .
The project started on Feb 2009, and since Oct 2009 is under my client= 's server.

We use JNDI to a DB2 iSeries Toolbox DataSource configured under Websp= here 6.1 using j400.jar driver.

Since yesterday, they have been noticing this problem with some tables= at DB2 (iSeries) server.
"....... *FILE in use".

They have been making me questions about this issue because they think= iBATIS does not close connections after any transaction.
I have told them about iBATIS documentation, where it says startTransa= ction() and endTransaction() are called automatically if we don't.

What I can tell you, is that I only use sqlMapper.update(), insert(), = queryForObject(), queryForList() for simple queries.

For batch queries, I use the startTransaction(), startBatch(), execute= Batch(), commitTransaction(), endTransaction():

Am I missing somthing ? Is this related to iBATIS?

Thank you very much.

-Fernando Rengifo.

=20

--001636a7d9131c151f0478bf4570--