The Java Transaction API


Transactions enable J2EE applications to maintain consistent, durable, and reliable persistent storage of data in a database. In Chapter 13, "Accessing Data Repositories Using JDBC," an overview for writing applications that use and perform Java Database Connectivity is presented. This chapter builds on the infrastructure of JDBC to create J2EE applications that ensure durable and consistent storage of the application data. The Java technology that provides this capability is the Java Transaction API (JTA) . A J2EE application is not useful if the data that it generates cannot be trusted to be consistent and accurate. After all, it is called a relational database because of the relationships between the data. Using database transactions correctly is extremely important so that all data affected by the transaction is modified as a group , or none of the data is modified. Otherwise, the database can become corrupted or contain inconsistent data.

This chapter introduces database transactions using JTA. Specifically, this chapter examines the way transactions are used in a J2EE application that is deployed in WebLogic Server. Managing database transactions using the performance tips provided here will help you to build robust, reliable, high-performance J2EE applications. A Servlet example is also presented to show how these technologies work together in a J2EE application.

For further information on Java Database Connectivity see Chapter 13, p. 403 .




BEA WebLogic Platform 7
BEA WebLogic Platform 7
ISBN: 0789727129
EAN: 2147483647
Year: 2003
Pages: 360

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