Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 61422 invoked from network); 15 Oct 2008 09:32:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Oct 2008 09:32:17 -0000 Received: (qmail 84278 invoked by uid 500); 15 Oct 2008 09:32:14 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 84226 invoked by uid 500); 15 Oct 2008 09:32:14 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 84215 invoked by uid 99); 15 Oct 2008 09:32:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2008 02:32:14 -0700 X-ASF-Spam-Status: No, hits=-1999.8 required=10.0 tests=ALL_TRUSTED,WHOIS_MYPRIVREG 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; Wed, 15 Oct 2008 09:31:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 57B65234C227 for ; Wed, 15 Oct 2008 02:31:44 -0700 (PDT) Message-ID: <1393618775.1224063104358.JavaMail.jira@brutus> Date: Wed, 15 Oct 2008 02:31:44 -0700 (PDT) From: =?utf-8?Q?J=C3=BCrgen_Weber_=28JIRA=29?= To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMO-4350) Connection proxying to imitate DissociatableManagedConnection can easily cause problems In-Reply-To: <75020589.1223658104349.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-4350?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1= 2639780#action_12639780 ]=20 J=C3=BCrgen Weber commented on GERONIMO-4350: ---------------------------------------- The analysis of David Jencks is good, thanks very much. I changed EisConnectionFactory so it uses IEisConnection instead of the imp= lementation EisConnection and an txconnector works now=20 (http://www.nabble.com/%24Proxy33-cannot-be-cast-to-com.dsoft.jca.eis.EisCo= nnection-td19610387s134.html) > Connection proxying to imitate DissociatableManagedConnection can easily = cause problems > -------------------------------------------------------------------------= -------------- > > Key: GERONIMO-4350 > URL: https://issues.apache.org/jira/browse/GERONIMO-4350 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues)=20 > Components: connector > Affects Versions: 2.1, 2.2 > Reporter: David Jencks > Assignee: Dain Sundstrom > Fix For: 2.1.4, 2.2 > > > We have some code to imitate the DissociatableManagedConnection to avoid = connection leaks that proxies connections from the supplied ManagedConnecti= onFactory: the proxy implements all the interfaces of the connection, but n= ot the class itself. However, there's nothing stopping the ConnectionFacto= ry from casting the (now proxied) connection to the implementation class it= expects. > The TxConnect project at sourceforge illustrates this approach in the Eis= ConnectionFactory. > http://txconnect.sourceforge.net > One possible solution would be to have a flag to turn on this proxying be= havior. I don't immediately see a way to detect if the problem will occur. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.