From bfc7a43206fe1187f6da0b88064742b2fa462d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=8A=B9=EC=A7=84?= Date: Thu, 3 Oct 2024 16:40:25 +0900 Subject: [PATCH] feat: temp deploy version --- .../domain/blockchain/messagequeue/BlockchainConsumer.java | 4 ++-- .../backend/domain/email/messagequeue/EventEmailConsumer.java | 4 ++-- .../domain/gitrepo/messagequeue/EventGitRepoInfoConsumer.java | 4 ++-- .../domain/gitrepo/messagequeue/EventSparkLineConsumer.java | 4 ++-- .../member/messagequeue/ContributionClientConsumer.java | 4 ++-- .../member/messagequeue/EventRepositoryClientConsumer.java | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/backend/src/main/java/com/dragonguard/backend/domain/blockchain/messagequeue/BlockchainConsumer.java b/backend/src/main/java/com/dragonguard/backend/domain/blockchain/messagequeue/BlockchainConsumer.java index a5403613..09497846 100644 --- a/backend/src/main/java/com/dragonguard/backend/domain/blockchain/messagequeue/BlockchainConsumer.java +++ b/backend/src/main/java/com/dragonguard/backend/domain/blockchain/messagequeue/BlockchainConsumer.java @@ -8,11 +8,11 @@ import lombok.RequiredArgsConstructor; -import org.springframework.context.event.EventListener; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; +import org.springframework.transaction.event.TransactionalEventListener; import java.util.UUID; @@ -28,7 +28,7 @@ public class BlockchainConsumer implements EventConsumer { @Async @Transactional(propagation = Propagation.REQUIRES_NEW) - @EventListener + @TransactionalEventListener @Override public void consume(final BlockchainEvent event) { final Member member = memberService.loadEntity(event.getMemberId()); diff --git a/backend/src/main/java/com/dragonguard/backend/domain/email/messagequeue/EventEmailConsumer.java b/backend/src/main/java/com/dragonguard/backend/domain/email/messagequeue/EventEmailConsumer.java index 279965f5..83fce8d0 100644 --- a/backend/src/main/java/com/dragonguard/backend/domain/email/messagequeue/EventEmailConsumer.java +++ b/backend/src/main/java/com/dragonguard/backend/domain/email/messagequeue/EventEmailConsumer.java @@ -7,11 +7,11 @@ import lombok.RequiredArgsConstructor; -import org.springframework.context.event.EventListener; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; +import org.springframework.transaction.event.TransactionalEventListener; import javax.mail.MessagingException; @@ -26,7 +26,7 @@ public class EventEmailConsumer implements EventConsumer { @Async @Transactional(propagation = Propagation.REQUIRES_NEW) - @EventListener + @TransactionalEventListener @Override public void consume(final EmailEvent event) { try { diff --git a/backend/src/main/java/com/dragonguard/backend/domain/gitrepo/messagequeue/EventGitRepoInfoConsumer.java b/backend/src/main/java/com/dragonguard/backend/domain/gitrepo/messagequeue/EventGitRepoInfoConsumer.java index 97310e2a..e76b5fe3 100644 --- a/backend/src/main/java/com/dragonguard/backend/domain/gitrepo/messagequeue/EventGitRepoInfoConsumer.java +++ b/backend/src/main/java/com/dragonguard/backend/domain/gitrepo/messagequeue/EventGitRepoInfoConsumer.java @@ -6,11 +6,11 @@ import lombok.RequiredArgsConstructor; -import org.springframework.context.event.EventListener; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; +import org.springframework.transaction.event.TransactionalEventListener; /** * @author 김승진 @@ -23,7 +23,7 @@ public class EventGitRepoInfoConsumer implements EventConsumer @Async @Transactional(propagation = Propagation.REQUIRES_NEW) - @EventListener + @TransactionalEventListener @Override public void consume(final GitRepoInfoEvent event) { gitRepoMemberFacade.requestToGithub( diff --git a/backend/src/main/java/com/dragonguard/backend/domain/gitrepo/messagequeue/EventSparkLineConsumer.java b/backend/src/main/java/com/dragonguard/backend/domain/gitrepo/messagequeue/EventSparkLineConsumer.java index 0e0f96f2..34dfb402 100644 --- a/backend/src/main/java/com/dragonguard/backend/domain/gitrepo/messagequeue/EventSparkLineConsumer.java +++ b/backend/src/main/java/com/dragonguard/backend/domain/gitrepo/messagequeue/EventSparkLineConsumer.java @@ -6,11 +6,11 @@ import lombok.RequiredArgsConstructor; -import org.springframework.context.event.EventListener; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; +import org.springframework.transaction.event.TransactionalEventListener; /** * @author 김승진 @@ -23,7 +23,7 @@ public class EventSparkLineConsumer implements EventConsumer { @Async @Transactional(propagation = Propagation.REQUIRES_NEW) - @EventListener + @TransactionalEventListener @Override public void consume(final SparkLineEvent sparkLineEvent) { gitRepoService.updateSparkLine(sparkLineEvent.getId(), sparkLineEvent.getGithubToken()); diff --git a/backend/src/main/java/com/dragonguard/backend/domain/member/messagequeue/ContributionClientConsumer.java b/backend/src/main/java/com/dragonguard/backend/domain/member/messagequeue/ContributionClientConsumer.java index 64e8fd74..964d73c1 100644 --- a/backend/src/main/java/com/dragonguard/backend/domain/member/messagequeue/ContributionClientConsumer.java +++ b/backend/src/main/java/com/dragonguard/backend/domain/member/messagequeue/ContributionClientConsumer.java @@ -10,11 +10,11 @@ import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.springframework.context.event.EventListener; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; +import org.springframework.transaction.event.TransactionalEventListener; /** * @author 김승진 @@ -29,7 +29,7 @@ public class ContributionClientConsumer implements EventConsumer