站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > The J2EE 1.4 Tutorial

Transactions in Web Components - The J2EE 1.4 Tutorial

Transactions in Web Components

You can demarcate a transaction in a web component by using either the java.sql.Connection or javax.transaction.UserTransaction interface. These are the same interfaces that a session bean with bean-managed transactions can use. Transactions demarcated with the Connection interface are discussed in the section JDBC Transactions, and those with the UserTransaction interface are discussed in the section JTA Transactions. For an example of a web component using transactions, see Accessing Databases.