We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be41698 commit f7fad3bCopy full SHA for f7fad3b
src/main/clojure/clojure/java/jmx.clj
@@ -85,7 +85,7 @@
85
(def ^{:dynamic true
86
:doc "The connection to be used for JMX ops. Defaults to the local process."
87
:skip-wiki true
88
- :tag MBeanServer}
+ :tag MBeanServerConnection}
89
*connection*
90
(ManagementFactory/getPlatformMBeanServer))
91
@@ -277,7 +277,7 @@
277
(defn register-mbean
278
"Register an mbean with the current *connection*."
279
[mbean mbean-name]
280
- (.registerMBean *connection* mbean (as-object-name mbean-name)))
+ (.registerMBean ^MBeanServer *connection* mbean (as-object-name mbean-name)))
281
282
(defn unregister-mbean
283
"Unregister mbean named mbean-name with the current *connection*."
0 commit comments