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.
KeywordsTransaction Management Active Transaction Local Transaction Public Class Global Transaction
Unable to display preview. Download preview PDF.