Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring JDBC Transaction

 
Jayaraj Jaganathan
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing wrong. What do you want?
 
Jayaraj Jaganathan
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



please some one explain me what for the above declarations ? please....
 
Jayaraj Jaganathan
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to get the connection which is enabled by spring

DataSourceUtils.getConnection(getDataSource())
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic