From 1dc958932b36c9a9daa721c3a23eecf5dab88600 Mon Sep 17 00:00:00 2001 From: Jonathan Coustick Date: Wed, 5 Jun 2019 16:35:45 +0100 Subject: [PATCH] PAYARA-3822 Ensure AMX Bean is created for metrics after server start --- .../org/glassfish/admin/monitor/MonitoringBootstrap.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nucleus/admin/monitor/src/main/java/org/glassfish/admin/monitor/MonitoringBootstrap.java b/nucleus/admin/monitor/src/main/java/org/glassfish/admin/monitor/MonitoringBootstrap.java index d853d263404..250fc8e55c0 100644 --- a/nucleus/admin/monitor/src/main/java/org/glassfish/admin/monitor/MonitoringBootstrap.java +++ b/nucleus/admin/monitor/src/main/java/org/glassfish/admin/monitor/MonitoringBootstrap.java @@ -37,7 +37,7 @@ * only if the new code is made subject to such option by the copyright * holder. */ -// Portions Copyright [2018] Payara Foundation and/or affiliates +// Portions Copyright [2018-2019] Payara Foundation and/or affiliates package org.glassfish.admin.monitor; @@ -215,6 +215,9 @@ public void event(Event event) { if (LOGGER.isLoggable(Level.FINE)) LOGGER.log(Level.FINE, "Discovering the XML ProbeProviders from lib/monitor"); discoverXMLProviders(); + if (spmd != null) { + spmd.updateAllStatsProviders(); + } } }