Container usually define attributes of DataSource it will support SO Tomcat 
will configure connection-pool thusly:
https://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html
HTH
Martin 
______________________________________________ 
                                                                                
                  


> Subject: Re: [dbcp] setting connection defaults
> To: user@commons.apache.org
> From: phil.ste...@gmail.com
> Date: Thu, 3 Sep 2015 18:57:27 -0700
> 
> On 9/3/15 12:26 PM, Pruitt, Byron S wrote:
> > What is the best to set properties like auto commit.  The DataSource 
> > interface doesn't expose anything.  The only thing I can find that supports 
> > these properties is BasicDataSource.
> 
> This depends on your application, but it's good to start with the
> defaults, which as of DBCP 2.x are the defaults set by the database
> driver.  You can change the default connection properties by
> specifying them in the BasicDataSource config or by setting them on
> the PoolableConnectionFactory if you are manually creating the
> PoolingDataSource.
> 
> Phil
> >
> > Thanks in advance.
> >
> >
> > Steve Pruitt
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> > For additional commands, e-mail: user-h...@commons.apache.org
> >
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
> 
                                          

Reply via email to