Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

transaction in spring

 
mark smith
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i use spring 2.5.2, i enable (i hope) transaction in spring xml config file...
but i don't how to be sure if that work fine... i don't have any error message



there is an insertion of a group in the database, that work fine

i use jdbc

how to be sure the transaction worked correctely?

i don't have any message than i transaction started and i don't have error message

addGroup is a methot in GroupFacade interface




NestedCheckedException come from spring
GroupException extends NestedCheckedException implements ErrorCoded

i call this method from a web application (who use spring framework)

how to do automatically a rollback if a problem happen

how to test the come back worked correctely?


thanks
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!