Transactions in Web Components - The Java EE 5 Tutorial (original) (raw)

Transactions in Web Components

You can demarcate a transaction in a web component by using either thejava.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 UserTransaction interface are discussed in the section JTA Transactions. For an example of a web component using transactions, see Accessing Databases.

Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices