Transaction propagation is an essential aspect of transactional processing, enabling developers to define the behavior of transactions across various method calls and services.
The REQUIRED propagation type is the default setting, allowing methods to join existing transactions or start a new one if none is active, thus providing flexibility in transactional operations.
In contrast, the REQUIRES_NEW propagation type ensures that a new transaction is always initiated, independent of any ongoing transactions, making it suitable for decoupled transactional operations.
MANDATORY insists on the presence of an existing transaction, raising an exception if none exists, which is crucial for methods that must execute within the context of a transaction.
Collection
[
|
...
]