public abstract class JmsTransactionSynchronization extends Object
| Constructor and Description |
|---|
JmsTransactionSynchronization() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCommit()
Called after a successful commit of the current Transaction.
|
void |
afterRollback()
Called after the current transaction has been rolled back either
by a call to rollback or by a failure to complete a commit operation.
|
boolean |
validate(JmsTransactionContext context)
Called once before the synchronization is added to the set
of synchronizations held for a pending TX.
|
public boolean validate(JmsTransactionContext context) throws Exception
context - reference to the transaction context.Exception - if an error occurs during the event.public void afterCommit()
throws Exception
Exception - if an error occurs during the event.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.