diff --git a/framework/entityext/src/org/ofbiz/entityext/data/EntityDataLoadContainer.java b/framework/entityext/src/org/ofbiz/entityext/data/EntityDataLoadContainer.java index abede1849c..c2bef8501f 100644 --- a/framework/entityext/src/org/ofbiz/entityext/data/EntityDataLoadContainer.java +++ b/framework/entityext/src/org/ofbiz/entityext/data/EntityDataLoadContainer.java @@ -88,6 +88,7 @@ public class EntityDataLoadContainer implements Container { this.name = name; this.configFile = configFile; // disable job scheduler, JMS listener and startup services + // FIXME: This is not thread-safe. ServiceDispatcher.enableJM(false); ServiceDispatcher.enableJMS(false); ServiceDispatcher.enableSvcs(false); diff --git a/framework/service/src/org/ofbiz/service/ServiceDispatcher.java b/framework/service/src/org/ofbiz/service/ServiceDispatcher.java index 9f294db985..612356d098 100644 --- a/framework/service/src/org/ofbiz/service/ServiceDispatcher.java +++ b/framework/service/src/org/ofbiz/service/ServiceDispatcher.java @@ -73,6 +73,7 @@ public class ServiceDispatcher { protected static final Map runLog = new ConcurrentLinkedHashMap.Builder().maximumWeightedCapacity(lruLogSize).build(); protected static Map dispatchers = FastMap.newInstance(); + // FIXME: These fields are not thread-safe. They are modified by EntityDataLoadContainer. We need a better design. protected static boolean enableJM = true; protected static boolean enableJMS = true; protected static boolean enableSvcs = true;