To perform these tasks using the Admin Console,
open the Custom MBeans component. For details, click the Help button
in the Admin Console.

The asadmin create-mbean Command

After installing the MBean classes as explained in MBean Class Loading, use the asadmin
create-mbean command to deploy the MBean. This registers
the MBean in the MBeanServer that is part of the Enterprise Server runtime
environment. For more information about the MBeanServer,
see The MBeanServer in the Enterprise Server.

Here is a simple example of an asadmin create-mbean command
in which TextPatterns is the implementation class.
The --attributes and --target options
are not required.

To redeploy an MBean, simply install its new
classes into the Enterprise Server as described in MBean Class Loading. Then either restart the server or use asadmin
delete-mbean followed by asadmin create-mbean.

The asadmin delete-mbean Command

To undeploy an MBean, use the asadmin delete-mbean command.
This removes its registration from the MBeanServer,
but does not delete its code. Here is an example asadmin
delete-mbean command in which TextPatterns is
the implementation class. The --target option is
not required.

The asadmin list-mbeans Command

To list MBeans that have been deployed, use the asadmin
list-mbeans command. Note that this command only lists the
MBean definitions and not the MBeans registered in the MBeanServer. Here is an example asadmin list-mbeans command.
The --target option is not required.

asadmin list-mbeans --user adminuser --target server1

The output of the asadmin list-mbeans command
lists the following information:

Implementation class – The name of the implementation
class without the extension.

Name – The name of the registered MBean, which
defaults to but may be different from the implementation class name.