File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 69

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: 69

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: 69



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

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

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