You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2020/10/19 14:55:48 UTC
[karaf] branch master updated: [KARAF-6604] Remove
opendmk_jmxremote_optional_jar by default (GPL licensed) and document how
to use JMXMP
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/master by this push:
new 407525b [KARAF-6604] Remove opendmk_jmxremote_optional_jar by default (GPL licensed) and document how to use JMXMP
new 62f77ae Merge pull request #1237 from jbonofre/KARAF-6604
407525b is described below
commit 407525b5048938d4299dcdb1e7998ba548e17370
Author: jbonofre <jb...@apache.org>
AuthorDate: Mon Oct 19 14:41:12 2020 +0200
[KARAF-6604] Remove opendmk_jmxremote_optional_jar by default (GPL licensed) and document how to use JMXMP
---
assemblies/features/base/pom.xml | 11 -----------
assemblies/features/framework/pom.xml | 6 ------
assemblies/features/standard/src/main/feature/feature.xml | 1 +
management/server/pom.xml | 6 ------
manual/src/main/asciidoc/user-guide/monitoring.adoc | 14 +++++++++++++-
5 files changed, 14 insertions(+), 24 deletions(-)
diff --git a/assemblies/features/base/pom.xml b/assemblies/features/base/pom.xml
index 701cbcf..535fa78 100644
--- a/assemblies/features/base/pom.xml
+++ b/assemblies/features/base/pom.xml
@@ -108,12 +108,6 @@
<artifactId>org.apache.felix.framework</artifactId>
<scope>runtime</scope>
</dependency>
- <dependency>
- <groupId>org.glassfish.external</groupId>
- <artifactId>opendmk_jmxremote_optional_jar</artifactId>
- <version>1.0-b01-ea</version>
- <scope>runtime</scope>
- </dependency>
</dependencies>
<build>
@@ -226,11 +220,6 @@
<outputDirectory>target/classes/resources/lib/boot</outputDirectory>
</artifactItem>
<artifactItem>
- <groupId>org.glassfish.external</groupId>
- <artifactId>opendmk_jmxremote_optional_jar</artifactId>
- <outputDirectory>target/classes/resources/lib/boot</outputDirectory>
- </artifactItem>
- <artifactItem>
<groupId>org.apache.karaf</groupId>
<artifactId>org.apache.karaf.client</artifactId>
<outputDirectory>target/classes/resources/system/org/apache/karaf/org.apache.karaf.client/${project.version}</outputDirectory>
diff --git a/assemblies/features/framework/pom.xml b/assemblies/features/framework/pom.xml
index 3ff57df..cc4b73a 100644
--- a/assemblies/features/framework/pom.xml
+++ b/assemblies/features/framework/pom.xml
@@ -74,12 +74,6 @@
<artifactId>org.apache.felix.framework</artifactId>
<scope>runtime</scope>
</dependency>
- <dependency>
- <groupId>org.glassfish.external</groupId>
- <artifactId>opendmk_jmxremote_optional_jar</artifactId>
- <version>1.0-b01-ea</version>
- <scope>runtime</scope>
- </dependency>
<!-- Client deps -->
<dependency>
diff --git a/assemblies/features/standard/src/main/feature/feature.xml b/assemblies/features/standard/src/main/feature/feature.xml
index df773b7..e6ed77b 100644
--- a/assemblies/features/standard/src/main/feature/feature.xml
+++ b/assemblies/features/standard/src/main/feature/feature.xml
@@ -1233,6 +1233,7 @@ serviceUrl = service:jmx:rmi://${rmiServerHost}:${rmiServerPort}/jndi/rmi://${rm
#
# JMXMP connector enabled
+# NB: if you enable JMXMP, don't forget to add opendmk_jmxremote_optional jar in lib/boot folder
#
jmxmpEnabled = false
diff --git a/management/server/pom.xml b/management/server/pom.xml
index 2400fa0..0ea1717 100644
--- a/management/server/pom.xml
+++ b/management/server/pom.xml
@@ -70,12 +70,6 @@
<scope>provided</scope>
</dependency>
<dependency>
- <groupId>org.glassfish.external</groupId>
- <artifactId>opendmk_jmxremote_optional_jar</artifactId>
- <version>1.0-b01-ea</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
<groupId>org.glassfish.extras</groupId>
<artifactId>bean-validator</artifactId>
<version>4.0.0.Alpha3</version>
diff --git a/manual/src/main/asciidoc/user-guide/monitoring.adoc b/manual/src/main/asciidoc/user-guide/monitoring.adoc
index e7cee25..cd1e7a6 100644
--- a/manual/src/main/asciidoc/user-guide/monitoring.adoc
+++ b/manual/src/main/asciidoc/user-guide/monitoring.adoc
@@ -95,6 +95,7 @@ serviceUrl = service:jmx:rmi://0.0.0.0:${rmiServerPort}/jndi/rmi://0.0.0.0:${rmi
#
# JMXMP connector enabled
+# NB: if you enable JMXMP, don't forget to add opendmk_jmxremote_optional jar in lib/boot folder
#
jmxmpEnabled = false
@@ -143,7 +144,18 @@ jmxmpObjectName = connector:name=jmxmp
* `rmiServerPort` property contains the port number of the JMX RMI server. Default is `44444`.
* `jmxRealm` is the security realm to use as authentication backend. By default it uses the `karaf` realm.
-By default, Karaf exposes JMX using RMI. You can also enable JMXMP connector by settings `jmxmpEnabled=true`. You can then configure the JMXMP connector using the corresponding `jmxmp*` properties.
+By default, Karaf exposes JMX using RMI.
+
+You can also enable JMXMP connector by settings `jmxmpEnabled=true`.
+You can then configure the JMXMP connector using the corresponding `jmxmp*` properties.
+In order to use JMXMP, you have to add `opendmk_jmxremote_optional` jar in `lib/boot` folder:
+
+----
+$ cd lib/boot
+$ curl -O https://repo1.maven.org/maven2/org/glassfish/external/opendmk_jmxremote_optional_jar/1.0-b01-ea/opendmk_jmxremote_optional_jar-1.0-b01-ea.jar
+$ cd ../../bin
+$ ./karaf
+----
==== MBeans