You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2019/06/27 13:45:53 UTC

[sling-org-apache-sling-connection-timeout-agent] 02/05: Remove 'impl' from MBean name

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch feature/osgi-fixes
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-connection-timeout-agent.git

commit 786c24320ed1de4890857202338b5dd7ae23d8ed
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Wed Jun 19 14:54:39 2019 +0200

    Remove 'impl' from MBean name
---
 src/main/java/org/apache/sling/cta/impl/AgentInfo.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/cta/impl/AgentInfo.java b/src/main/java/org/apache/sling/cta/impl/AgentInfo.java
index b12b61f..857b097 100644
--- a/src/main/java/org/apache/sling/cta/impl/AgentInfo.java
+++ b/src/main/java/org/apache/sling/cta/impl/AgentInfo.java
@@ -29,7 +29,7 @@ public class AgentInfo implements AgentInfoMBean {
     
     static {
         try {
-            NAME = new ObjectName(AgentInfo.class.getPackage().getName()+":type=Agent");
+            NAME = new ObjectName(AgentInfo.class.getPackage().getName().replace(".impl", "")+":type=Agent");
         } catch (MalformedObjectNameException e) {
             throw new ExceptionInInitializerError(e);
         }