Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 6444 invoked from network); 18 Mar 2010 16:36:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Mar 2010 16:36:50 -0000 Received: (qmail 33487 invoked by uid 500); 18 Mar 2010 16:36:48 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 33377 invoked by uid 500); 18 Mar 2010 16:36:48 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 33123 invoked by uid 99); 18 Mar 2010 16:36:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Mar 2010 16:36:48 +0000 X-ASF-Spam-Status: No, hits=-1057.5 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Mar 2010 16:36:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3DD28234C4B1 for ; Thu, 18 Mar 2010 16:36:27 +0000 (UTC) Message-ID: <449697653.345781268930187252.JavaMail.jira@brutus.apache.org> Date: Thu, 18 Mar 2010 16:36:27 +0000 (UTC) From: "Stefano Bertini (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (CONFIGURATION-412) Cannot use DatabaseConfiguration if the datasource has autocommit = false In-Reply-To: <325066040.325041268861967329.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CONFIGURATION-412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846986#action_12846986 ] Stefano Bertini commented on CONFIGURATION-412: ----------------------------------------------- I think that the DatabaseConfiguration should always perform a commit, otherwise the class would not be usable without autocommit = true. Infact, without autocommit = true, sql statements issued by the code would never be committed to the database. > Cannot use DatabaseConfiguration if the datasource has autocommit = false > ------------------------------------------------------------------------- > > Key: CONFIGURATION-412 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-412 > Project: Commons Configuration > Issue Type: Bug > Affects Versions: 1.2 > Environment: Windows / Linux - Database Oracle 11 > Reporter: Stefano Bertini > Priority: Critical > > If using a DatabaseConfiguration object with a datasource that has *autocommit = false*, the setProperty method fails with a *duplicate key* error. > This happens because in the setProperty method the two calls _clearProperty(key)_ and _addProperty(key, value)_ can retrieve two different connections from the database. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.