db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "TomohitoNakayama" <tomon...@basil.ocn.ne.jp>
Subject Re: [jira] Commented: (DERBY-273) The derbynet/dataSourcePermissions_net.java test fails intermittently
Date Mon, 08 Aug 2005 13:31:58 GMT
Hello.


> So would just closing the pooled connection work?
> For instance, in dataSourcePermissions.java  we have code line this ....
> 
> 
>            checkConnection(ds.getPooledConnection("FRANCES", "isabella"));
>            shutdown();
> 
> Could we just close the PooledConnection before calling shutdown in the
> test?


I remember next lines were where closing problem happened.

L152 maybe .... ; I have lost information about line number ....
> 	checkConnection(ds.getConnection("EDWARD", "noodle"));
>    	checkConnection(ds.getConnection("FRANCES", "isabella"));
		>              if (supportsUnicodeNames()) {
		>                    checkConnection(ds.getConnection(zeus, apollo));
>              }
>
>    	shutdown();

Connection of EDWARD and FRANCES was never closed.

I thought connection pool worked behind DataSource interface.
Is it impossible ... ?


Best regards.

/*

         Tomohito Nakayama
         tomonaka@basil.ocn.ne.jp
         tomohito@rose.zero.ad.jp
         tmnk@apache.org

         Naka
         http://www5.ocn.ne.jp/~tomohito/TopPage.html

*/
----- Original Message ----- 
From: "Kathey Marsden" <kmarsdenderby@sbcglobal.net>
To: "Derby Development" <derby-dev@db.apache.org>
Sent: Monday, August 08, 2005 9:42 PM
Subject: Re: [jira] Commented: (DERBY-273) The derbynet/dataSourcePermissions_net.java test
fails intermittently


> TomohitoNakayama wrote:
> 
>> Talking with people,
>> I came to think processing in dataSourcePermissions_net.java is
>> special as processing of program which use ConnectionPooling,
>> because such programs generally do not close database by themself.
>>
> So would just closing the pooled connection work?
> For instance, in dataSourcePermissions.java  we have code line this ....
> 
> 
>            checkConnection(ds.getPooledConnection("FRANCES", "isabella"));
>            shutdown();
> 
> Could we just close the PooledConnection before calling shutdown in the
> test?
> 
> 
> Kathey
> 
> 
> 
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.10.1/64 - Release Date: 2005/08/04
> 
>


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.1/64 - Release Date: 2005/08/04


Mime
View raw message