Sun GlassFish Enterprise Server 2.1 Developer's Guide

MBean Class Loading

After you develop a custom MBean, copy its class files (or JAR file) into the MBean class loader directory, domain-dir/applications/mbeans. You have two choices of where to place any dependent classes:

After copying the classes, register the MBean using the asadmin create-mbean command. See The asadmin create-mbean Command.

For general information about Enterprise Server class loaders, see Chapter 2, Class Loaders.