See: Description
Interface | Description |
---|---|
TransactionManager.NonVoidTransactionalMethod<R> | |
TransactionManager.TransactionalMethod | |
TransactionManager.TransactionToken |
Class | Description |
---|---|
TransactionManager |
TransactionManager is an abstract class which supports executing a transactional method
TransactionManager.TransactionalMethod , TransactionManager.NonVoidTransactionalMethod in the context of a transaction. |
Enum | Description |
---|---|
Propagation |
The enum Propagation is used with the
Transactional annotation to specify whether the methods of
a CDI managed bean are called with a valid transaction context and propataion of the transaction context. |
Exception | Description |
---|---|
TransactionException |
Thrown when a problem occurs with a transaction.
|
Annotation Type | Description |
---|---|
Transactional |
The Transactional annotation specifies whether the container is to invoke a business method within a transaction
context.
|
There are two options for transaction management provided:
TransactionManager
class.Transactional
annotation on CDI managed beans.Either approach can be used, but the declarative approach is recommended wherever possible as this will reduce the amount of boilerplate code required to support transactions. You can also have a mix of code using either approach.