From 23de152d5ce528a0bec277441cab35d9cafea6df Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Thu, 03 Oct 2013 18:00:04 +0000
Subject: [PATCH] Fix OPENDJ-1161 - Allow configuration of RMI port in JMX connector. These changes are adding a new optional configuration parameter : rmi-port, to allow specifying a fixed port for the RMI connection underlying JMX. This is required when managing applications need to connect to OpenDJ through a firewall. CR-2429.
---
opends/src/admin/defn/org/opends/server/admin/std/JMXConnectionHandlerConfiguration.xml | 34 ++++++++++++++++++++++++++++++++--
1 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/opends/src/admin/defn/org/opends/server/admin/std/JMXConnectionHandlerConfiguration.xml b/opends/src/admin/defn/org/opends/server/admin/std/JMXConnectionHandlerConfiguration.xml
index 2f00ff9..7f52580 100644
--- a/opends/src/admin/defn/org/opends/server/admin/std/JMXConnectionHandlerConfiguration.xml
+++ b/opends/src/admin/defn/org/opends/server/admin/std/JMXConnectionHandlerConfiguration.xml
@@ -24,6 +24,7 @@
!
!
! Copyright 2007-2009 Sun Microsystems, Inc.
+ ! Portions Copyright 2013 ForgeRock AS.
! -->
<adm:managed-object name="jmx-connection-handler"
plural-name="jmx-connection-handlers"
@@ -67,11 +68,12 @@
</adm:defined>
</adm:default-behavior>
</adm:property-override>
- <adm:property name="listen-address" multi-valued="true" read-only="true">
+ <adm:property name="listen-address" multi-valued="true" read-only="true">
<adm:synopsis>
Specifies the address or set of addresses on which this
<adm:user-friendly-name />
- should listen for connections from SNMP clients.
+ should listen for connections from JMX clients. However JMX/RMI
+ doesn't allow this, and this property cannot be set.
</adm:synopsis>
<adm:description>
Multiple addresses may be provided as separate values for this
@@ -146,4 +148,32 @@
</ldap:attribute>
</adm:profile>
</adm:property>
+ <adm:property name="rmi-port">
+ <adm:synopsis>
+ Specifies the port number on which the JMX RMI service
+ will listen for connections from clients. A value of 0
+ indicates the service to choose a port of its own.
+ </adm:synopsis>
+ <adm:description>
+ If the value provided is different than 0, the value
+ will be used as the RMI port. Otherwise, the RMI service
+ will choose a port of its own.
+ </adm:description>
+ <adm:requires-admin-action>
+ <adm:component-restart />
+ </adm:requires-admin-action>
+ <adm:default-behavior>
+ <adm:defined>
+ <adm:value>0</adm:value>
+ </adm:defined>
+ </adm:default-behavior>
+ <adm:syntax>
+ <adm:integer lower-limit="0" upper-limit="65535" />
+ </adm:syntax>
+ <adm:profile name="ldap">
+ <ldap:attribute>
+ <ldap:name>ds-cfg-rmi-port</ldap:name>
+ </ldap:attribute>
+ </adm:profile>
+ </adm:property>
</adm:managed-object>
--
Gitblit v1.10.0