[ 
https://issues.apache.org/jira/browse/SLING-2999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13731771#comment-13731771
 ] 

Carsten Ziegeler commented on SLING-2999:
-----------------------------------------

Yes, the namespace is there do avoid collision with potentially existing 
properties. The properties are already contained in the object name, so we 
could go without them, thus avoiding the use of a namespace. I don't have a 
concrete use case for needing the object name properties as properties of the 
mbean resource, but if we need them later on, we would need some separation.
The only alternative I see is to prefix the property names which is kind of a 
namespace but not in the jcr sense, like property-{name}
                
> JMX Resource Provider
> ---------------------
>
>                 Key: SLING-2999
>                 URL: https://issues.apache.org/jira/browse/SLING-2999
>             Project: Sling
>          Issue Type: New Feature
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>
> For easier rendering of JMX mbeans within Sling,  a special resource provider 
> should make the JMX information available at 
> */system/sling/monitoring/mbeans* (Configurable)
> /system/sling/monitoring/mbeans  - resource type = sling:mbeans
>                                  + resource sub tree with all mbeans 
> An MBean has an object name which has
> * a domain
> * properties where type and name are very common
> The domain is converted into a sub path and the properties are converted to a 
> resource name. For example: _org.apache.sling:name=test,type=hello_ creates a 
> resource _org/apache/sling/name=test,type=hello_. The name can be obtained by 
> calling _ObjectName.getCanonicalKeyPropertyListString()_. The result might 
> need escaping (for the values and the = character) in order to create valid 
> resource names.
> Each MBean resource has at least:
> ||Property name ||Description|
> |sling:resourceType|object name of the MBean|
> |sling:resourceSuperType| sling:mbean|
> |mbean:description|The description of the MBean (optional)|
> |mbean:className|MBean class name|
> |mbean:objectName|MBean object name|
> |mbean properties|separate property for each property of the object name|
> And a child resource named _mbean:attributes_ if the MBean has attributes. 
> For each attribute a child resource of _mbean:attributes_ is created where 
> the name of the resource is the name of the attribute and:
> ||Property name ||Description|
> |sling:resourceType|Type of the attribute|
> |sling:resourceSuperType| sling:mbeanattribute|
> |mbean:description|The description of the attribute (optional)|
> |mbean:value|String representation of the value or a string array for multi 
> values|

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to