The following is from Hibernate 3.5.2 Final:
public void afterTransactionCompletion(boolean success, Transaction tx) {
log.trace( "after transaction completion" );
persistenceContext.afterTransactionCompletion();
actionQueue.afterTransactionCompletion(success);
if ( rootSession == null && tx != null ) {
try {
interceptor.afterTransactionCompletion(tx);
}
catch (Throwable t) {
log.error("exception in interceptor afterTransactionCompletion()", t);
}
}
if ( autoClear ) {
clear();
}
}
JavaDoc in Interceptor.java seems to attempt to declare when an event will not be sent due to some configuration but that method is not excluded and so is expected to be called. Anyway, we should have a clear workaround or get a fix soon:
/**
Called when a Hibernate transaction is begun via the Hibernate <tt>Transaction</tt>
API. Will not be called if transactions are being controlled via some other
mechanism (CMT, for example).
*/
public void afterTransactionBegin(Transaction tx);
/**
Called before a transaction is committed (but not before rollback).
*/
public void beforeTransactionCompletion(Transaction tx);
/**
Called after a transaction is committed or rolled back.
*/
public void afterTransactionCompletion(Transaction tx);
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
The following is from Hibernate 3.5.2 Final:
public void afterTransactionCompletion(boolean success, Transaction tx) {
log.trace( "after transaction completion" );
persistenceContext.afterTransactionCompletion();
actionQueue.afterTransactionCompletion(success);
if ( rootSession == null && tx != null ) {
try { interceptor.afterTransactionCompletion(tx); }
catch (Throwable t) { log.error("exception in interceptor afterTransactionCompletion()", t); }
}
if ( autoClear ) { clear(); }
}
JavaDoc in Interceptor.java seems to attempt to declare when an event will not be sent due to some configuration but that method is not excluded and so is expected to be called. Anyway, we should have a clear workaround or get a fix soon:
/**
*/
public void afterTransactionBegin(Transaction tx);
/**
*/
public void beforeTransactionCompletion(Transaction tx);
/**
*/
public void afterTransactionCompletion(Transaction tx);