Commit 6bec1bc6 authored by Tom Evans's avatar Tom Evans

Merge pull request #7 from zzglitch/hazelcast-patch-1

Pass the ClusterClassLoader to the hazelcast instance.
parents 6c783d37 53721442
...@@ -125,6 +125,7 @@ public class ClusteredCacheFactory implements CacheFactoryStrategy { ...@@ -125,6 +125,7 @@ public class ClusteredCacheFactory implements CacheFactoryStrategy {
try { try {
Config config = new ClasspathXmlConfig(HAZELCAST_CONFIG_FILE); Config config = new ClasspathXmlConfig(HAZELCAST_CONFIG_FILE);
config.setInstanceName("openfire"); config.setInstanceName("openfire");
config.setClassLoader(loader);
if (JMXManager.isEnabled() && HAZELCAST_JMX_ENABLED) { if (JMXManager.isEnabled() && HAZELCAST_JMX_ENABLED) {
config.setProperty("hazelcast.jmx", "true"); config.setProperty("hazelcast.jmx", "true");
config.setProperty("hazelcast.jmx.detailed", "true"); config.setProperty("hazelcast.jmx.detailed", "true");
......
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