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 {