@@ -32,10 +32,10 @@ import org.springframework.transaction.support.TransactionSynchronizationManager
|
||||
* an event to a {@link TransactionalEventListener} annotated method. Supports
|
||||
* the exact same features as any regular {@link EventListener} annotated method
|
||||
* but is aware of the transactional context of the event publisher.
|
||||
* <p>
|
||||
* Processing of {@link TransactionalEventListener} is enabled automatically when
|
||||
* Spring's transaction management is enabled. For other cases, registering a
|
||||
* bean of type {@link TransactionalEventListenerFactory} is required.
|
||||
*
|
||||
* <p>Processing of {@link TransactionalEventListener} is enabled automatically
|
||||
* when Spring's transaction management is enabled. For other cases, registering
|
||||
* a bean of type {@link TransactionalEventListenerFactory} is required.
|
||||
*
|
||||
* @author Stephane Nicoll
|
||||
* @author Juergen Hoeller
|
||||
@@ -69,8 +69,11 @@ class ApplicationListenerMethodTransactionalAdapter extends ApplicationListenerM
|
||||
}
|
||||
processEvent(event);
|
||||
}
|
||||
else if (logger.isDebugEnabled()) {
|
||||
logger.debug("No transaction is running - skipping " + event);
|
||||
else {
|
||||
// No transactional event execution at all
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("No transaction is active - skipping " + event);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user