Sun GlassFish Enterprise Server 2.1 Developer's Guide

Enabling and Disabling MBeans

A custom MBean is enabled by default. You can disable an MBean during deployment by using the asadmin create-mbean command's optional --enabled=false option. See The asadmin create-mbean Command.

After deployment, you can disable an MBean using the asadmin set command. For example:

asadmin set --user adminuser server1.applications.mbean.TextPatterns.enabled=false

If the MBean name is different from the implementation class, you must use the name in the asadmin set command. In this example, the name is TextPatterns.

For full details on the asadmin set command, see the Sun GlassFish Enterprise Server 2.1 Reference Manual.