Share

c3p0:JDBC DataSources/Resource Pools

Tracker: Support Requests

5 Autocomit options on C3P0 - ID: 2792019
Last Update: Comment added ( swaldman )

Hi there, I was hoping that C3p0 would have a setting where it sets the
Connection.setAutoCommit( true/false); I noticed that in Hibernate using
C3p0 this is done in C3P0ConnectionProvider class.
Basically the need it that when I build a pool of connections i should be
able to set the AutoCommit to a value via the pool rather than getting the
connection and setting the AutoCommit on each connection in the pool.
Imagine a pool with 50 connections...
Also there are 2 existing options abt this but they are about autocommit
when closing a connection.


Rishabh Chandra ( rishabh2u ) - 2009-05-15 01:58

5

Open

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2009-05-15 02:23
Sender: swaldmanProject Admin

Hi.

You can set-up your Connection by writing a ConnectionCustomizer, and
using setConnectionCustomizer(). See the c3p0 docs. It is very easy to do.


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.