GeeCON Prague 2014*
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: 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())
 
GeeCON Prague 2014
 
subject: Spring JDBC Transaction