Skip to content

Commit bf569a0

Browse files
authored
Merge pull request #6993 from ant-media/remove-unused-setting
Remove clusterNotifier in xml and code for TomcatLoader
2 parents b5111c8 + 08417e4 commit bf569a0

File tree

2 files changed

+3
-30
lines changed

2 files changed

+3
-30
lines changed

src/main/java/org/red5/server/tomcat/TomcatLoader.java

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,10 @@
3434
import javax.management.JMX;
3535
import javax.management.MBeanServer;
3636
import javax.management.ObjectName;
37-
import jakarta.security.auth.message.config.AuthConfigFactory;
38-
import jakarta.servlet.ServletContext;
39-
import jakarta.servlet.ServletException;
4037
import javax.xml.XMLConstants;
4138
import javax.xml.parsers.DocumentBuilder;
4239
import javax.xml.parsers.DocumentBuilderFactory;
4340

44-
import org.apache.catalina.Cluster;
4541
import org.apache.catalina.Container;
4642
import org.apache.catalina.Context;
4743
import org.apache.catalina.Engine;
@@ -68,7 +64,6 @@
6864
import org.slf4j.LoggerFactory;
6965
import org.springframework.beans.factory.DisposableBean;
7066
import org.springframework.beans.factory.InitializingBean;
71-
import org.springframework.beans.factory.annotation.Autowired;
7267
import org.springframework.context.ApplicationContext;
7368
import org.springframework.context.support.AbstractApplicationContext;
7469
import org.springframework.jmx.export.annotation.ManagedResource;
@@ -80,8 +75,10 @@
8075
import org.w3c.dom.Node;
8176
import org.w3c.dom.NodeList;
8277

83-
import io.antmedia.cluster.IClusterNotifier;
8478
import io.antmedia.component.AppConfig;
79+
import jakarta.security.auth.message.config.AuthConfigFactory;
80+
import jakarta.servlet.ServletContext;
81+
import jakarta.servlet.ServletException;
8582

8683
/**
8784
* Red5 loader for Tomcat.
@@ -170,12 +167,6 @@ public boolean accept(File dir, String name) {
170167
*/
171168
protected List<TomcatConnector> connectors;
172169

173-
174-
/**
175-
* Cluster
176-
*/
177-
private IClusterNotifier clusterNotifier;
178-
179170
/**
180171
* Valves
181172
*/
@@ -915,18 +906,4 @@ public List<TomcatConnector> getConnectors() {
915906
return connectors;
916907
}
917908

918-
/**
919-
* @return the clusterNotifier
920-
*/
921-
public IClusterNotifier getClusterNotifier() {
922-
return clusterNotifier;
923-
}
924-
925-
/**
926-
* @param clusterNotifier the clusterNotifier to set
927-
*/
928-
public void setClusterNotifier(IClusterNotifier clusterNotifier) {
929-
this.clusterNotifier = clusterNotifier;
930-
}
931-
932909
}

src/main/server/conf/jee-container.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@
4040
<!-- Tomcat without SSL enabled -->
4141
<bean id="tomcat.server" class="org.red5.server.tomcat.TomcatLoader"
4242
depends-on="context.loader,warDeployer" lazy-init="true">
43-
<!-- make sure tomcat.cluster is initialized before TomcatLoader in cluster mode otherwise there maybe initialization exceptions -->
44-
<!-- cluster start
45-
<property name="clusterNotifier" ref="tomcat.cluster" />
46-
cluster end -->
4743
<property name="webappFolder" value="${red5.root}/webapps" />
4844

4945
<property name="connectors">

0 commit comments

Comments
 (0)