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.
KeywordsPropa Prefix DBCP
Unable to display preview. Download preview PDF.