-
Bug
-
Resolution: Done
-
Major
-
None
-
None
CMResourceService#stop fails to clean up values that #start creates.
The issue is the line
jtaEnvironmentBean.getValue().getPerformImmediateCleanupOfCommitMarkableResourceBranchesMap().remove(immediateCleanup);
immediateCleanup is a Boolean and the return type of getPerformImmediateCleanupOfCommitMarkableResourceBranchesMap() is Map<String, Boolean>
So this line never does anything. The line should read
jtaEnvironmentBean.getValue().getPerformImmediateCleanupOfCommitMarkableResourceBranchesMap().remove(jndiName);
because if we look a the #start method above we see
Map<String, Boolean> performImmediateCleanupOfConnectableResourceBranchesMap = jtaEnvironmentBean.getValue().getPerformImmediateCleanupOfCommitMarkableResourceBranchesMap(); performImmediateCleanupOfConnectableResourceBranchesMap.put(jndiName, immediateCleanup);