Author: manik.surtani(a)jboss.com
Date: 2009-02-24 10:26:32 -0500 (Tue, 24 Feb 2009)
New Revision: 7773
Modified:
core/trunk/src/main/java/org/jboss/cache/RPCManagerImpl.java
Log:
Better sanity check
Modified: core/trunk/src/main/java/org/jboss/cache/RPCManagerImpl.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/RPCManagerImpl.java 2009-02-24 14:20:30 UTC
(rev 7772)
+++ core/trunk/src/main/java/org/jboss/cache/RPCManagerImpl.java 2009-02-24 15:26:32 UTC
(rev 7773)
@@ -387,6 +387,10 @@
if (isUsingBuddyReplication)
throw new ConfigurationException("Non-blocking state transfer cannot be
used with buddy replication at this time. Please disable either buddy replication or
non-blocking state transfer.");
+
+ // Make sure Streaming state transfer is enabled in JGroups!
+ if
(!configuration.getClusterConfig().contains("STREAMING_STATE_TRANSFER"))
+ throw new ConfigurationException("Non-blocking state transfer requires the
STREAMING_STATE_TRANSFER protocol in JGroups. Please make sure this is available, or else
disable non-blocking state transfer.");
}
private void startNonBlockStateTransfer(List<Address> members)