From f4ddbf8e1d1780f436d23d72d1e18ca8cdc9af72 Mon Sep 17 00:00:00 2001 From: Luca Roffia Date: Wed, 16 Jun 2021 09:24:57 +0200 Subject: [PATCH] multiple beans registration in SecureSPARQL11Handler --- .../wot/sepa/engine/protocol/sparql11/SPARQL11Handler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/main/java/it/unibo/arces/wot/sepa/engine/protocol/sparql11/SPARQL11Handler.java b/engine/src/main/java/it/unibo/arces/wot/sepa/engine/protocol/sparql11/SPARQL11Handler.java index 72c8ba8c..256e2d16 100644 --- a/engine/src/main/java/it/unibo/arces/wot/sepa/engine/protocol/sparql11/SPARQL11Handler.java +++ b/engine/src/main/java/it/unibo/arces/wot/sepa/engine/protocol/sparql11/SPARQL11Handler.java @@ -80,7 +80,7 @@ public SPARQL11Handler(Scheduler scheduler, String queryPath, String updatePath) this.updatePath = updatePath; // JMX - SEPABeans.registerMBean("SEPA:type=" + this.getClass().getSimpleName(), this); + if(this.getClass().getSimpleName().equals("SPARQL11Handler")) SEPABeans.registerMBean("SEPA:type=" + this.getClass().getSimpleName(), this); } protected ClientAuthorization authorize(HttpRequest request) throws SEPASecurityException {