Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 86534 invoked from network); 12 May 2009 18:43:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 May 2009 18:43:08 -0000 Received: (qmail 99620 invoked by uid 500); 12 May 2009 18:43:08 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 99564 invoked by uid 500); 12 May 2009 18:43:07 -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 99556 invoked by uid 99); 12 May 2009 18:43:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2009 18:43:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Tue, 12 May 2009 18:43:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 917C8234C004 for ; Tue, 12 May 2009 11:42:45 -0700 (PDT) Message-ID: <1001826942.1242153765583.JavaMail.jira@brutus> Date: Tue, 12 May 2009 11:42:45 -0700 (PDT) From: "Alan Burlison (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4225) EmbeddedConnectionPoolDataSource40 never calls the ConnectionEventListener calbacks In-Reply-To: <205936721.1242119385543.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12708558#action_12708558 ] Alan Burlison commented on DERBY-4225: -------------------------------------- Thanks for the offer, but before I impose on your time I need to do some more digging in the application. I've found one place where the exception thrown by a close without a prior commit or rollback is ignored, there may be others. If I fix all those and I still get the problem, I'll update the bug. Thanks! > EmbeddedConnectionPoolDataSource40 never calls the ConnectionEventListener calbacks > ----------------------------------------------------------------------------------- > > Key: DERBY-4225 > URL: https://issues.apache.org/jira/browse/DERBY-4225 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.5.1.1 > Environment: Solaris > Reporter: Alan Burlison > Priority: Blocker > Attachments: ConnectionPoolTest.java > > > I'm using EmbeddedConnectionPoolDataSource40 to implement a simple connection pool. A skeleton of the code looks like this: > ---------- > class PoolConnectionEventListener implements ConnectionEventListener { > ... > } > : > EmbeddedConnectionPoolDataSource40 source = new EmbeddedConnectionPoolDataSource40(); > : > connListener = new PoolConnectionEventListener(); > : > PooledConnection conn = pconn.getConnection(); > conn.addConnectionEventListener(connListener); > ---------- > This is so I can catch the connectionClosed and connectionErrorOccurred events and recycle the connections. In Derby 10.4.2.1 this all works fine, in 10.5.1.1 it doesn't work at all - the callbacks never get made. This makes 10.5.1.1 unusable in anything that uses connection pooling, such as a JNDI context. > I haven't checked ClientConnectionPoolDataSource40, it may have the same problem. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.