From 587bb820274dd9d9e89cafa350eb1a4692b60c92 Mon Sep 17 00:00:00 2001 From: Barzilai Spinak Date: Fri, 27 Dec 2019 22:09:34 -0300 Subject: [PATCH] GroovyParticipant: default NO_JOIN behavior was preventing abort and commit hooks if other hooks missing --- .../org/jpos/transaction/participant/GroovyParticipant.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/groovy/src/main/java/org/jpos/transaction/participant/GroovyParticipant.java b/modules/groovy/src/main/java/org/jpos/transaction/participant/GroovyParticipant.java index 3825299bd9..13561bd36f 100644 --- a/modules/groovy/src/main/java/org/jpos/transaction/participant/GroovyParticipant.java +++ b/modules/groovy/src/main/java/org/jpos/transaction/participant/GroovyParticipant.java @@ -116,7 +116,7 @@ public class GroovyParticipant extends Log @SuppressWarnings("unchecked") public int prepare (long id, Serializable ctx) { if (prepare == null) { - return PREPARED | NO_JOIN | READONLY; // nothing to do + return PREPARED | READONLY; // nothing to do } try { if (compiled) { @@ -135,7 +135,7 @@ public int prepare (long id, Serializable ctx) { @SuppressWarnings("unchecked") public int prepareForAbort (long id, Serializable ctx) { if (prepareForAbort == null) { - return PREPARED | NO_JOIN | READONLY; // nothing to do + return PREPARED | READONLY; // nothing to do } try { if (compiled) {