Skip to content

Commit ad1ccc1

Browse files
rbleusesobychacko
authored andcommitted
Check transaction enabled
Signed-off-by: Rémi Bleuse <remi.bleuse@gmail.com>
1 parent 8e71770 commit ad1ccc1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

spring-pulsar/src/main/java/org/springframework/pulsar/listener/DefaultPulsarMessageListenerContainer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,9 @@ private void checkIfPausedAndHandleAccordingly() {
555555
}
556556

557557
private boolean transactional() {
558-
return this.transactionTemplate != null && this.transactionManager != null;
558+
return this.transactionTemplate != null
559+
&& this.transactionManager != null
560+
&& this.containerProperties.transactions().isEnabled();
559561
}
560562

561563
private void invokeRecordListener(Messages<T> messages, AtomicBoolean inRetryMode) {

0 commit comments

Comments
 (0)