[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    Re: [DBCP] proposal for activationStatement and passivationStatement
From:       Dirk Verbeeck <dirk.verbeeck () pandora ! be>
Date:       2003-12-22 14:01:16
[Download RAW message or body]

Good start, but it will be really usefull when the new feature is 
available through the BasicDataSource. (and tested with JUnit test of 
course)

I have created a bugzilla issue to track this item:
http://issues.apache.org/bugzilla/show_bug.cgi?id=25696

happy holidays...  o<]:-)

-- Dirk

Brent Verner wrote:

> [2003-12-21 21:36] Dirk Verbeeck said:
> | Yes this would be a nice feature, a couple of days ago there was 
> | somebody else requesting a similar thing on commons-user.
> | A patch is very welcome.
> 
> patch attached.  While cleaning this up, I realized that 
> activation/passivation was executed each time a pooled
> connection was borrowed.  This is not at all what I'd 
> originally intended...<blush />   As such, I've moved the 
> statement execution calls into makeObject() and destroyObject()
> where the do what I want (only once :-)).
> 
> | One remark, I would stop the normal processing when an exception is 
> | thrown. If needed you can always handle error in a PL/SQL block or 
> | stored procedure.
> 
> Ok. An SQLException is thrown on error.
> 
> cheers.
>   Brent
> 
> 
> P.S. I'll be slow to reply to email over the next couple of
>      weeks...  happy holidays!




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic