Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 35120 invoked from network); 6 Feb 2008 18:01:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Feb 2008 18:01:46 -0000 Received: (qmail 64722 invoked by uid 500); 6 Feb 2008 18:01:38 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 64694 invoked by uid 500); 6 Feb 2008 18:01:38 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 64685 invoked by uid 99); 6 Feb 2008 18:01:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2008 10:01:38 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2008 18:01:30 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C98B4714088 for ; Wed, 6 Feb 2008 10:01:22 -0800 (PST) Message-ID: <8096035.1202320882823.JavaMail.jira@brutus> Date: Wed, 6 Feb 2008 10:01:22 -0800 (PST) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-1911) rollback does not function with pooled connection In-Reply-To: <1401124.1159715659486.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-1911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden resolved DERBY-1911. ----------------------------------- Resolution: Invalid No objections raised to marking this invalid. Dan commented that this is the correct behavior. > rollback does not function with pooled connection > ------------------------------------------------- > > Key: DERBY-1911 > URL: https://issues.apache.org/jira/browse/DERBY-1911 > Project: Derby > Issue Type: Bug > Components: Network Server > Affects Versions: 10.1.3.1 > Environment: WIndows XP, Windows 2003, IBM Websphere Application Server Community Edition 1.1, Sun JDK 1.5_08, IBM JDK 5.0 > Reporter: Huang GuangXia > > My scenario: The derby is running in a Network Server mode. > When using DriverManager to get connection, rollback works fine with setAutoCommit(false) to the connection. > But rollback not do its work in the pooled connection scenario. > I configured a data source in Websphere Application Server Community Edition 1.1 (WASCE for short hereafter), and get connection this way: > Context ctx = new InitialContext(); > DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/eim"); > conn = ds.getConnection(); > with this connection, I insert data into three tables. All the three tables have primary key constraint, so no dup key can be inserted. > before execute insert statement, I do this: > conn.setAutoCommit(false); > and then execute three insert statements. > the third insertion failed because of duplicated key, so Exception caught, a rollback is executed. > But the result is not right: the first and second insertion have not rolled back!!! The inserted data still in table. > Any body can help me on this? > Can this problem be solved by change settings? > Thanks > HuangGX -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.