Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

transaction in spring

 
mark smith
Ranch Hand
Posts: 251
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic