Author: kfujino
Date: Mon Sep 7 05:59:18 2015
New Revision: 1701547
URL: http://svn.apache.org/r1701547
Log:
Fix a default clusterListeners in SimpleTcpCluster.
The optimal default value is different for each session manager.
ClusterSessionListener is never used in BackupManager.
Modified:
tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
Modified: tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java?rev=1701547&r1=1701546&r2=1701547&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
(original)
+++ tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java Mon Sep
7 05:59:18 2015
@@ -553,7 +553,7 @@ public class SimpleTcpCluster extends Li
}
protected void checkDefaults() {
- if ( clusterListeners.size() == 0 ) {
+ if ( clusterListeners.size() == 0 && managerTemplate instanceof
DeltaManager ) {
addClusterListener(new ClusterSessionListener());
}
if ( valves.size() == 0 ) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]