This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Spring JDBC Transaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring JDBC Transaction" Watch "Spring JDBC Transaction" New topic
Author

Spring JDBC Transaction

Jayaraj Jaganathan
Ranch Hand

Joined: Jun 29, 2009
Posts: 70

I am trying to learn spring jdbc transaction. in my dao (DepartmentDAO) .
i always get auto commit as true.
please let me know where i am wrong

advance thanks



Java Code



Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Nothing wrong. What do you want?


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Jayaraj Jaganathan
Ranch Hand

Joined: Jun 29, 2009
Posts: 70

i always get auto commit as true. even if i configure
<prop key="selectAllDepartment">PROPAGATION_NOT_SUPPORTED,-Exception</prop>


how to make auto commit as false?

Jayaraj Jaganathan
Ranch Hand

Joined: Jun 29, 2009
Posts: 70



please some one explain me what for the above declarations ? please....
Jayaraj Jaganathan
Ranch Hand

Joined: Jun 29, 2009
Posts: 70
to get the connection which is enabled by spring

DataSourceUtils.getConnection(getDataSource())
 
 
subject: Spring JDBC Transaction
 
Similar Threads
Dependency injection problem
Spring transaction
I am getting org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity:
spring transaction management only
Java app on Tomcat return "Network Error (tcp_error)" error