adamsaghy commented on code in PR #4001:
URL: https://github.com/apache/fineract/pull/4001#discussion_r1698426448
##########
fineract-core/src/main/java/org/apache/fineract/infrastructure/event/business/service/BusinessEventNotifierServiceImpl.java:
##########
@@ -33,12 +34,17 @@
import
org.apache.fineract.infrastructure.event.external.service.ExternalEventService;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;
+import org.springframework.transaction.TransactionExecution;
+import org.springframework.transaction.TransactionExecutionListener;
+import org.springframework.transaction.annotation.Propagation;
+import org.springframework.transaction.annotation.Transactional;
+import org.springframework.transaction.interceptor.TransactionAspectSupport;
@Service
@SuppressWarnings({ "unchecked", "rawtypes" })
@RequiredArgsConstructor
@Slf4j
-public class BusinessEventNotifierServiceImpl implements
BusinessEventNotifierService, InitializingBean {
+public class BusinessEventNotifierServiceImpl implements
BusinessEventNotifierService, InitializingBean, TransactionExecutionListener {
Review Comment:
It would might be better to have the execution listener as a standalone
component.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]