Fix problem with automatically generated jmx helper names
@@ -200,7 +200,7 @@ private ObjectName generateObjectName(Object bean) {
try {
return (ObjectName) bean.getClass().getMethod("getObjectName").invoke(bean);
} catch (IllegalAccessException|InvocationTargetException|NoSuchMethodException e) {
- return new ObjectName(String.format("%s:%s",
+ return new ObjectName(String.format("%s:type=%s",
bean.getClass().getPackage().getName(),
bean.getClass().getSimpleName()));
}
