From cd7ddcc30ed1b2cedf327e3c45185f815bf7ca29 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 02 Mar 2007 17:04:03 +0000
Subject: [PATCH] Allow the user to specify the JMX port using *j* option during the cli installation and using configure script. In the QuickSetup I added some code to *temporarily* select a port that is not being used for JMX.  Today we do not inform the user of the existence of this port so this approach does not make things much worse and reduces the changes of port conflicts in general.  Even in the case where we are not installing multiple instances of OpenDS the port 1689 might be in use by another process.

---
 opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java b/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
index c564963..bef514e 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
@@ -677,6 +677,8 @@
     argList.add(getConfigFilePath());
     argList.add("-p");
     argList.add(String.valueOf(getUserData().getServerPort()));
+    argList.add("-j");
+    argList.add(String.valueOf(getUserData().getServerJMXPort()));
 
     argList.add("-D");
     argList.add(getUserData().getDirectoryManagerDn());

--
Gitblit v1.10.0