Replacing calls to ds.getConnection() with prepareConnection() sounds
reasonable.  Please open an enhancement ticket.

Thanks,
David

--- Mikhail Krivoshein <[EMAIL PROTECTED]> wrote:
> Hello all,
> 
> Currently QueryRunner has prepareStatement() method that is used to 
> create a new statements.
> I think there is sense to go further and create prepareConnection() 
> method that will be used to create a new connections (and tune them).
> 
> Idea behind this is to provide protected method that can't be used in 
> derived QueryRunners to tune connection
> establishing code.
> 
> I presonally want to override such prepareConnection() method in 
> MyQueryRunner and make
> conn.setAutoCommit(false);
> call there.
> 
> Looking forward to hear comments.
> If you decide that this is a good idea, I'm ready to prepare a patch.
> 
> Best regards,
> Mikhail Krivoshein
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



                
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to