File size: 1,706 Bytes
281d6f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff --git a/src/main/java/org/jboss/ejb/protocol/remote/EJBSimpleTransactionControl.java b/src/main/java/org/jboss/ejb/protocol/remote/EJBSimpleTransactionControl.java
index af32394..807d5c0 100644
--- a/src/main/java/org/jboss/ejb/protocol/remote/EJBSimpleTransactionControl.java
+++ b/src/main/java/org/jboss/ejb/protocol/remote/EJBSimpleTransactionControl.java
@@ -104,6 +104,8 @@ class EJBSimpleTransactionControl implements SimpleTransactionControl {
             throw new SystemException();
         } catch (IOException e) {
             throw new SystemException();
+        } finally {
+            invocationTracker.remove(invocation);
         }
     }
 
diff --git a/src/main/java/org/jboss/ejb/protocol/remote/EJBTransactionOperations.java b/src/main/java/org/jboss/ejb/protocol/remote/EJBTransactionOperations.java
index d41c124..cb110f5 100644
--- a/src/main/java/org/jboss/ejb/protocol/remote/EJBTransactionOperations.java
+++ b/src/main/java/org/jboss/ejb/protocol/remote/EJBTransactionOperations.java
@@ -125,6 +125,8 @@ class EJBTransactionOperations implements RemotingOperations {
             throw new XAException(XAException.XAER_RMERR);
         } catch (IOException e) {
             throw new XAException(XAException.XAER_RMERR);
+        } finally {
+            invocationTracker.remove(invocation);
         }
     }
 
@@ -204,6 +206,8 @@ class EJBTransactionOperations implements RemotingOperations {
             throw new XAException(XAException.XAER_RMERR);
         } catch (IOException | ClassNotFoundException e) {
             throw new XAException(XAException.XAER_RMERR);
+        } finally {
+            invocationTracker.remove(invocation);
         }
     }