Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 76521 invoked from network); 11 May 2005 06:30:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 May 2005 06:30:30 -0000 Received: (qmail 39228 invoked by uid 500); 11 May 2005 06:33:22 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 39069 invoked by uid 500); 11 May 2005 06:33:20 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 39050 invoked by uid 99); 11 May 2005 06:33:20 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from gateway.ev.co.yu (HELO Firewall.ev.co.yu) (194.247.214.130) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 10 May 2005 23:33:20 -0700 Received: by Firewall.ev.co.yu; (5.65v4.0/1.3/10May95) id AA06907; Tue, 11 May 1999 08:37:18 +0200 Received: from [192.168.61.128] (SiljaTest.ev.co.yu [192.168.61.128]) by Uprava.ev.co.yu (8.13.1/8.13.1) with ESMTP id j4B6A50j003416 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 11 May 2005 08:10:07 +0200 (MET DST) Message-Id: <4281A1BD.9060902@ev.co.yu> Date: Wed, 11 May 2005 08:10:05 +0200 From: Nikola Milutinovic Organization: EPS JP Elektrovojvodina User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050319 X-Accept-Language: en-us, en, sr Mime-Version: 1.0 To: Tomcat Users List Subject: Re: DBCP ClassCastException References: <05May9.183249cest.332190@janus.stmk.gv.at> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Dhiren Bhatia wrote: >I'm using BasicDataSource because javax.sql.DataSource does not have methods >to set the driver class name, url, username/pwd etc. My app needs to support >different databases and the driver is loaded based on which database is >installed. > > You've got it backwards. It is the responsibility of a J2EE container to use whatever the implementatio it likes and set those parameters and then give your application just javax.sql.DataSource. THAT will make your application portable. Nix. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org