Skip to content

Commit

Permalink
https://github.com/atomikos/transactions-essentials/issues/220
Browse files Browse the repository at this point in the history
CheckedExportingTransactionManager is not thread-safe
  • Loading branch information
martinaubele committed Jun 26, 2024
1 parent 115834e commit ce4fe74
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import com.atomikos.icatch.CompositeTransaction;
import com.atomikos.icatch.CompositeTransactionManager;
Expand Down Expand Up @@ -39,7 +40,7 @@ public class CheckedExportingTransactionManager implements ExportingTransactionM

private static final Logger LOGGER = LoggerFactory.createLogger(CheckedExportingTransactionManager.class);

private static Map<String,PendingRequestSynchronisation> pendingRequestSynchronisation = new HashMap<String,PendingRequestSynchronisation>();
private static Map<String,PendingRequestSynchronisation> pendingRequestSynchronisation = new ConcurrentHashMap<String,PendingRequestSynchronisation>();

private ExportingTransactionManager delegate;

Expand Down

0 comments on commit ce4fe74

Please sign in to comment.