[jbosscache-commits] JBoss Cache SVN: r7773 - core/trunk/src/main/java/org/jboss/cache.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Tue Feb 24 10:26:32 EST 2009


Author: manik.surtani at 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)




More information about the jbosscache-commits mailing list