forked from eventuate-tram/eventuate-tram-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced TransactionTemplate by EventuateTransactionTemplate in Trans…
…actionalNoopDuplicateMessageDetector. See eventuate-tram/eventuate-tram-core-quarkus#7
- Loading branch information
Showing
6 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
...ate/tram/spring/consumer/jdbc/TransactionalNoopDuplicateMessageDetectorConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
package io.eventuate.tram.spring.consumer.jdbc; | ||
|
||
import io.eventuate.common.jdbc.EventuateTransactionTemplate; | ||
import io.eventuate.common.spring.jdbc.EventuateCommonJdbcOperationsConfiguration; | ||
import io.eventuate.tram.consumer.common.DuplicateMessageDetector; | ||
import io.eventuate.tram.consumer.jdbc.TransactionalNoopDuplicateMessageDetector; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.context.annotation.Import; | ||
import org.springframework.transaction.support.TransactionTemplate; | ||
|
||
@Configuration | ||
public class TransactionalNoopDuplicateMessageDetectorConfiguration { | ||
|
||
@Bean | ||
public DuplicateMessageDetector duplicateMessageDetector(TransactionTemplate transactionTemplate) { | ||
return new TransactionalNoopDuplicateMessageDetector(transactionTemplate); | ||
public DuplicateMessageDetector duplicateMessageDetector(EventuateTransactionTemplate eventuateTransactionTemplate) { | ||
return new TransactionalNoopDuplicateMessageDetector(eventuateTransactionTemplate); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters