The J2EETM Tutorial
Home
TOC
Index
PREV TOP NEXT Search
Feedback

Transactions in Web Components

You may demarcate a transaction in a Web component with either the java.sql.Connection or javax.transaction.UserTransaction interface. These are the same interfaces that a session bean with bean-managed transactions may 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.

Home
TOC
Index
PREV TOP NEXT Search
Feedback