FIXME comments, no functional change.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542463 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrian Crum
2013-11-16 04:21:39 +00:00
parent 2d2a3fa96e
commit b34da96480
2 changed files with 2 additions and 0 deletions
@@ -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);
@@ -73,6 +73,7 @@ public class ServiceDispatcher {
protected static final Map<RunningService, ServiceDispatcher> runLog = new ConcurrentLinkedHashMap.Builder<RunningService, ServiceDispatcher>().maximumWeightedCapacity(lruLogSize).build();
protected static Map<String, ServiceDispatcher> 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;