[jboss-cvs] JBossAS SVN: r65338 - trunk/tomcat/src/main/org/jboss/web/tomcat/service/sso.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Sep 12 12:06:48 EDT 2007
Author: bstansberry at jboss.com
Date: 2007-09-12 12:06:48 -0400 (Wed, 12 Sep 2007)
New Revision: 65338
Modified:
trunk/tomcat/src/main/org/jboss/web/tomcat/service/sso/TreeCacheSSOClusterManager.java
Log:
Handle cache with CacheMode.LOCAL
Modified: trunk/tomcat/src/main/org/jboss/web/tomcat/service/sso/TreeCacheSSOClusterManager.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/tomcat/service/sso/TreeCacheSSOClusterManager.java 2007-09-12 15:59:39 UTC (rev 65337)
+++ trunk/tomcat/src/main/org/jboss/web/tomcat/service/sso/TreeCacheSSOClusterManager.java 2007-09-12 16:06:48 UTC (rev 65338)
@@ -47,6 +47,7 @@
import org.jboss.cache.Region;
import org.jboss.cache.RegionNotEmptyException;
import org.jboss.cache.config.Option;
+import org.jboss.cache.config.Configuration.CacheMode;
import org.jboss.cache.notifications.annotation.CacheListener;
import org.jboss.cache.notifications.annotation.NodeModified;
import org.jboss.cache.notifications.annotation.NodeRemoved;
@@ -1148,9 +1149,14 @@
// "Object" so we have to be sure its Serializable
if (address instanceof Serializable)
localAddress = (Serializable) address;
- else
+ else if (address != null)
localAddress = address.toString();
+ else if (CacheMode.LOCAL == cache.getConfiguration().getCacheMode())
+ localAddress = "LOCAL";
+ else
+ throw new IllegalStateException("Cannot get local address from cache");
+
log.debug("Local address is " + localAddress);
// Get the currentView
More information about the jboss-cvs-commits
mailing list