Chapter 16. Transactions


Transactions and transactional support are crucial for most J2EE applications. J2EE provides thorough and solid support for transactions in the form of JTA. This chapter begins with a brief overview of transaction terminology, including ACID properties and transaction isolation levels as well as the concepts of local and distributed transactions. It then describes various distributed transaction scenarios, such as reading a message from a queue and updating information in a database table within a single transaction. The chapter covers the programmatic transaction model provided by the JTA but also describes the declarative transaction model used with J2EE components.

Transaction support is an essential part of many Java and J2EE APIs such as JDBC and JMS. This chapter covers core concepts about transactions, but you'll find more detailed information about JDBC and JMS in Chapters 8 and 11, respectively. Since EJBs, described in Chapter 6, represent the standard persistence model for J2EE, EJBs have extensive support for JTA-based transactions. Hibernate, the open source persistence API discussed in Chapter 20, also provides support for JTA-based transactions.



Java Enterprise in a Nutshell
Java Enterprise in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596101422
EAN: 2147483647
Year: 2004
Pages: 269

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net