Win a flower (🌹) or copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java (📚) this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
master stewards:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
garden masters:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
gardeners:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Spring JDBC Transaction

 
pioneer
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



 
pioneer
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing wrong. What do you want?
 
Jayaraj Jaganathan
pioneer
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
pioneer
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
pioneer
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())
 
It's just a flesh wound! Or a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!