Stoian Ivanov
unread,Jul 16, 2013, 9:02:11 AM7/16/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to red5in...@googlegroups.com
Here is a little patch to make JXM ports "stable". It is pure configuration but i think it should be "standardized"
diff --git a/src/main/server/conf/red5-common.xml b/src/main/server/conf/red5-common.xml
index 37fb492..b99f913 100644
--- a/src/main/server/conf/red5-common.xml
+++ b/src/main/server/conf/red5-common.xml
@@ -31,7 +31,7 @@
<bean class="org.springframework.jmx.support.ConnectorServerFactoryBean" depends-on="rmiRegistry">
<property name="objectName" value="org.red5.server:name=rmi" />
<property name="serviceUrl"
- value="service:jmx:rmi://${jmx.rmi.host}/jndi/rmi://${jmx.rmi.host}:${jmx.rmi.port}/red5" />
+ value="service:jmx:rmi://${jmx.rmi.host}:${jmx.rmi.sport}/jndi/rmi://${jmx.rmi.host}:${jmx.rmi.port}/red5" />
<property name="environment">
<!-- the following is only valid when the sun jmx implementation is used -->
<map>
diff --git a/src/main/server/conf/red5.properties b/src/main/server/conf/red5.properties
index 770515e..072cc8b 100644
--- a/src/main/server/conf/red5.properties
+++ b/src/main/server/conf/red5.properties
@@ -91,6 +91,7 @@ proxy.destination_port=1935
# JMX
jmx.rmi.host=localhost
jmx.rmi.port=9999
+jmx.rmi.sport=9998
jmx.rmi.port.remoteobjects=
jmx.keystorepass=password
jmx.mina.monitor.enable=true
Basically changing serviceUrl propery of ConnectorServerFactoryBean (in conf/red5-common.xml) to include port after the first hostname, and adding property for this in conf/red5.properties.
Shall I create a bug/feature request or posting here is enough?