Chapter 16. Transaction Management
Transactions are pivotal parts of a reliable enterprise application. The simplistic view of a transaction includes the begin transaction
command; SQL updates, deletes, and so on; and finally the commit
/rollback
command. But there's much more to transactions than this! In this chapter, we show you how to use declarative, rather than manually coded, transactions and how to span transactions across multiple transactional resources. We will also show you how to write code that can be synchronized with a transaction, in other words, how to write code that can participate in a transaction and receive commit
/rollback
notifications. Finally, we give you some advice on how to test transactional code.
Spring offers excellent ...
Get Pro Spring 2.5 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.