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.
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 Java System Application Server 9.1 Reference Manual.