Using Container-Managed Transactions

Container-managed transactions are a painless way to define transactions and should be good enough for most situations. The easiest way to use container-managed transactions is to define the transaction types for each method. Each deployment tool has a different way of specifying these types. Figure 9.6 shows how you configure the transaction types in the J2EE SDK deploytool.

Figure 9.6. The J2EE SDK deploytool lets you set the transaction attributes for each session bean method.

The WebLogic deployment tool takes a similar approach, but you can create multiple groups of transaction permissions. After you select ...

Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.