Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F18F96E8 for ; Fri, 2 Dec 2011 20:30:02 +0000 (UTC) Received: (qmail 41095 invoked by uid 500); 2 Dec 2011 20:29:58 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 40966 invoked by uid 500); 2 Dec 2011 20:29:58 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 40957 invoked by uid 99); 2 Dec 2011 20:29:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 20:29:58 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.62.48] (HELO qmta05.westchester.pa.mail.comcast.net) (76.96.62.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 20:29:51 +0000 Received: from omta04.westchester.pa.mail.comcast.net ([76.96.62.35]) by qmta05.westchester.pa.mail.comcast.net with comcast id 4LV31i0030ldTLk55LVXrb; Fri, 02 Dec 2011 20:29:31 +0000 Received: from Christophers-MacBook-Pro.local ([69.143.109.145]) by omta04.westchester.pa.mail.comcast.net with comcast id 4LVW1i00v38FjT13QLVWa3; Fri, 02 Dec 2011 20:29:31 +0000 Message-ID: <4ED93528.2060107@christopherschultz.net> Date: Fri, 02 Dec 2011 15:29:28 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Casting a Connection as an OracleConnection in Tomcat 7 References: <1E36D5D086CC5A42B433724FF35E6BE12ED917F4A2@DFW1MBX01.mex07a.mlsrvr.com> <4ED557CC.4020106@christopherschultz.net> <1E36D5D086CC5A42B433724FF35E6BE12ED9288AD4@DFW1MBX01.mex07a.mlsrvr.com> In-Reply-To: <1E36D5D086CC5A42B433724FF35E6BE12ED9288AD4@DFW1MBX01.mex07a.mlsrvr.com> X-Enigmail-Version: 1.3.3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jason, On 12/2/11 3:23 PM, Jason Perrone wrote: > So, I can't cast the connection Tomcat returns as a > DelegatingConnection. DelegatingConnection is from Commons DBCP > and this connection is > org.apache.tomcat.dbcp.dbcp.PoolableConnection. I do not want to > reference any Tomcat libraries directly because our product is > container agnostic. Any suggestions would be greatly appreciated. Two thoughts: 1. Use reflection ;) 2. Stop trying to cast to OracleConnection What do you need OracleConnection for, anyway? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7ZNSgACgkQ9CaO5/Lv0PA8iACeIyzpkgEx7B49HKcx7ZquASYK UXEAnRAL4dcEPFENnatgp0WSJ+rQXMAN =AWRl -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org