Pro Spring 2.5 pp 575-610 | Cite as

Transaction Management

Abstract

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.

Keywords

Propa Prefix DBCP 

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Jan Machacek, Aleksa Vukotic, Anirvan Chakraborty, and Jessica Ditt 2008

Personalised recommendations