Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 43631 invoked from network); 13 Aug 2005 16:14:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Aug 2005 16:14:08 -0000 Received: (qmail 42829 invoked by uid 500); 13 Aug 2005 16:14:02 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 42792 invoked by uid 500); 13 Aug 2005 16:14:01 -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 42779 invoked by uid 99); 13 Aug 2005 16:14:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Aug 2005 09:14:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.233.18.245] (HELO buttons.boynes.com) (209.233.18.245) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Aug 2005 09:14:22 -0700 Received: from [192.168.37.199] (unknown [192.168.37.199]) by buttons.boynes.com (Postfix) with ESMTP id 825EE1344D for ; Sat, 13 Aug 2005 09:13:59 -0700 (PDT) Message-ID: <42FE1C46.4000306@apache.org> Date: Sat, 13 Aug 2005 09:13:58 -0700 From: Jeremy Boynes User-Agent: Mozilla Thunderbird 1.0.6-1.1.fc3 (X11/20050720) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@geronimo.apache.org Subject: Re: TranQL AbstractXADataSourceMCF.java changes for set/getLoginTimeout need to be revisited References: <42FD9373.4000305@hogstrom.org> In-Reply-To: <42FD9373.4000305@hogstrom.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Or you could just use the Derby connector TranQL provides :-) IMO throwing SQLException here is incorrect; given this is a J2CA resource it should throw the appropriate ResourceException, in this case an InvalidPropertyException. If you look at the definition MCF, this is the behaviour of get/setLogWriter. Given all DataSources support get/setLoginTimeout I added an implementation of these accessors to the base class including the wrapping code. Perhaps the easiest solution is to just remove these methods from Geronimo's version. -- Jeremy Matt Hogstrom wrote: > Jeremy, > > I pulled HEAD for TranQL to finish the DB2 Syntax Factories and built > against the current HEAD for Geronimo. I received errors when building > the derby-connector package because the method signatures no longer > matched the ones from AbstractXADataSourceMCF in TranQL. > > We can remove the throws in the DerbyXAManagedConnectionFactory but we > would have to add duplicate code to internally handle the SQLException > thrown by the DerbyXADataSource. The two methods in question are > getLoginTimeout / setLoginTimeout. > > Since these classes eventually end up defining > javax.sql.EmbeddedDatasource and it defines the SQLException on its > getLoginTimeout / setLoginTimeout methods I think the change made to > AbstractXADatasourceMCF should be reverted to throwing the exception. > > Take a look and let me know if you agree. If so I can make the changes. > > Matt > >