A friendly place for Java greenhorns!
Java
Ranch
»
Big Moose Saloon
Search
|
FAQ
|
Recent Topics
|
Hot Topics
Register
/
Login
Java
Ranch
»
Forums
»
Products
»
Tomcat
Author
Set Auto Commit for JNDI data source
kavin clain
Ranch Hand
Joined: Jan 19, 2010
Messages: 42
posted
Feb 07, 2010 23:19:31
Is there any attribute to set auto commit in jndi data source configuration?
I want to know about the Connection we get from
DataSource
need to set auto commit explicitly?
<Context path="/MyProj" docBase="MyProj" debug="5" reloadable="true" crossContext="true"> <Resource name="jdbc/someDB" auth="Container" type="javax.sql.DataSource" removeAbandoned="true" logAbandoned="true" removeAbandonedTimeout="30" maxActive="100" maxIdle="30" maxWait="15000" username="****" password="******" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/MyProj" /> </Context>
Java
Ranch
»
Forums
»
Products
»
Tomcat
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter