Suppose i want to insert records in 10 different tables and this should be atomic, menaing either all insert should happen in all tables or none.How can this transcation be maintained in spring jdbc template?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
<tx:annotation-driven/>to your applicationContext and define atransactionManagerwhich refers to your datasource.See reference here and an example here.