Permission that control access to MBeanServer methods.
The MBeanPermission contains a target name and a comma separated list of target actions. The target name is composed by:
- the class name of the MBean, as returned by {@link javax.management.MBeanInfo#getClassName MBeanInfo.getClassName()}
- the pound character '#'
- the attribute name or the operation name
- the object name of the MBean inclosed in squared brackets
When used in the target name, the wildcard '*' may be used to specify packages, classes or methods as a whole.
When used in the actions, the wildcard '*' indicates all actions.
An example of policy file is the following:
grant codebase my-jmx-application.jar { permission javax.management.MBeanPermission "mx4j.tools.naming.NamingService", "instantiate, registerMBean, unregisterMBean"; permission javax.management.MBeanPermission "mx4j.tools.naming.NamingService#start", "invoke"; permission javax.management.MBeanPermission "mx4j.tools.naming.NamingService#stop", "invoke"; }
@version $Revision: 1.11 $