Commit cceee678 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Configured to use default (false) value for clustering enabled property.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8190 b35dd754-fafc-0310-a699-88a17e54d16e
parent 9850a2b1
...@@ -7,22 +7,19 @@ ...@@ -7,22 +7,19 @@
*/ */
package org.jivesoftware.util.cache; package org.jivesoftware.util.cache;
import org.jivesoftware.util.JiveGlobals;
import org.jivesoftware.util.Log;
import org.jivesoftware.util.InitializationException;
import org.jivesoftware.util.JiveProperties;
import org.jivesoftware.openfire.XMPPServer; import org.jivesoftware.openfire.XMPPServer;
import org.jivesoftware.openfire.XMPPServerListener; import org.jivesoftware.openfire.XMPPServerListener;
import org.jivesoftware.openfire.container.Plugin; import org.jivesoftware.openfire.container.Plugin;
import org.jivesoftware.openfire.container.PluginManager;
import org.jivesoftware.openfire.container.PluginClassLoader; import org.jivesoftware.openfire.container.PluginClassLoader;
import org.jivesoftware.openfire.pubsub.Node; import org.jivesoftware.openfire.container.PluginManager;
import org.xmpp.packet.JID; import org.jivesoftware.util.InitializationException;
import org.xmpp.packet.Presence; import org.jivesoftware.util.JiveGlobals;
import org.jivesoftware.util.JiveProperties;
import org.jivesoftware.util.Log;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.CopyOnWriteArrayList;
import java.util.*;
/** /**
* Creates Cache objects. The returned caches will either be local or clustered * Creates Cache objects. The returned caches will either be local or clustered
...@@ -301,10 +298,10 @@ public class CacheFactory { ...@@ -301,10 +298,10 @@ public class CacheFactory {
return; return;
} }
// See if clustering should be enabled. // See if clustering should be enabled.
String enabled = JiveGlobals.getXMLProperty(CLUSTER_PROPERTY_NAME); boolean enabled = JiveGlobals.getXMLProperty(CLUSTER_PROPERTY_NAME, false);
// If the user tried to turn on clustering, make sure they're actually allowed to. // If the user tried to turn on clustering, make sure they're actually allowed to.
if (Boolean.valueOf(enabled)) { if (enabled) {
startClustering(); startClustering();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment