Package org.gatein.common.transaction
Interface JTAUserTransactionLifecycleListener
public interface JTAUserTransactionLifecycleListener
Listener for perform some actions at the specified point of JTA transaction lifecycle.
Transaction lifecycle needs to be managed through
For now, we have shared instance of one registered listener for all transactions, so listener implementations need to be thread-safe
Transaction lifecycle needs to be managed through
JTAUserTransactionLifecycleService to have listeners executed.For now, we have shared instance of one registered listener for all transactions, so listener implementations need to be thread-safe
- Author:
- Marek Posolda
-
Method Summary
Modifier and TypeMethodDescriptionvoidCallback method to be executed after start of JTA transactionvoidCallback method to be executed before start of JTA transaction
-
Method Details
-
beforeBegin
void beforeBegin()Callback method to be executed before start of JTA transaction -
afterBegin
void afterBegin()Callback method to be executed after start of JTA transaction
-