Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 28514 invoked from network); 28 Jan 2010 19:46:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jan 2010 19:46:21 -0000 Received: (qmail 65378 invoked by uid 500); 28 Jan 2010 19:46:20 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 65359 invoked by uid 500); 28 Jan 2010 19:46:20 -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 65351 invoked by uid 99); 28 Jan 2010 19:46:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jan 2010 19:46:20 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of eduardo.cavalcanti@eversystems.com.br designates 201.91.216.22 as permitted sender) Received: from [201.91.216.22] (HELO srv-spo-email.eversystems.com.br) (201.91.216.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jan 2010 19:46:12 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by srv-spo-email.eversystems.com.br (Postfix) with ESMTP id 0E29B38B8005 for ; Thu, 28 Jan 2010 17:36:21 -0200 (BRST) X-Spam-Score: -3.266 X-Spam-Level: Received: from srv-spo-email.eversystems.com.br ([127.0.0.1]) by localhost (srv-spo-email.eversystems.com.br [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6t2EOQ4Wli1L for ; Thu, 28 Jan 2010 17:36:20 -0200 (BRST) Received: from [172.16.10.250] (wssp-24003.eversystems.net [172.16.10.250]) by srv-spo-email.eversystems.com.br (Postfix) with ESMTP id BD69138B8004 for ; Thu, 28 Jan 2010 17:36:20 -0200 (BRST) Message-ID: <4B61F6AD.3040709@eversystems.com.br> Date: Thu, 28 Jan 2010 17:42:21 -0300 From: "Eduardo M. Cavalcanti" Organization: Eversystems User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: user-java@ibatis.apache.org Subject: CommitRequired attribute of transactionManager in iBatis 3 References: <27353435.post@talk.nabble.com> <000c01caa002$36882030$a3986090$@com> In-Reply-To: <000c01caa002$36882030$a3986090$@com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-3.266 tagged_above=-10 required=7 tests=[ALL_TRUSTED=-1.8, AWL=-0.558, BAYES_00=-2.599, RATWARE_GECKO_BUILD=1.691] Hello, The CommitRequired attribute of transactionManager, present in iBatis 2 is no longer necessary in iBatis 3? Quote from iBatis 2 manual: "The element also allows an optional attribute commitRequired that can be true or false. Normally iBATIS will not commit transactions unless an insert, update, or delete operation has been performed. This is true even if you explicitly call the commitTransaction() method. This behavior creates problems in some cases. If you want iBATIS to always commit transactions, even if no insert, update, or delete operation has been performed, then set the value of the commitRequired attribute to true. Examples of where this attribute is useful include: 1. If you call a stored procedures that updates data as well as returning rows. In that case you would call the procedure with the queryForList() operation � so iBATIS would not normally commit the transaction. But then the updates would be rolled back. 2. In a WebSphere environment when you are using connection pooling and you use the JNDI and the JDBC or JTA transaction manager. WebSphere requires all transactions on pooled connections to be committed or the connection will not be returned to the pool." How to proceed in iBatis 3 in the example cases mentioned? Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org For additional commands, e-mail: user-java-help@ibatis.apache.org