while its straightforward to express the properties that correspond to managed properties
from the deployment attachment, its not so for the managed operations. Take the case of
the datasource root managed object attachment. This contains the properties, but the
operations need to be bound to an mbean whose name is not know until deployment time. It
seems like there needs to be a ManagementOperation annotation that can be used to describe
a reference to an operation that will be resolved during deployment processing. Something
like:
| @ManagementObject(
| name="TheDS",
| operations={@ManagementOperation(target="TheDSPool",
name="flush", signature={})}
| )
| public class DSMetaData implements Serializable
| {
| @ManagementProperty(name="display-name", use={})
| public String getDiplayName()
|
| ...
| }
|
I'm not sure how to integrate this into the mc processing. There is also the issue of
how to map the "TheDSPool" alias onto the actual mbean name for the
DeploymentUnit this metadata is associated with.
What are others thoughts on how to associate the managed operations with the
ManagedObject?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069896#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...