wildfly/wildfly — pull request #4772 by jaikiran (2013-07-11 11:58:54+00:00)
Title: Fix for WFLY-822

The commit here includes a fix and testcase for https://issues.jboss.org/browse/WFLY-822.

The issue reported in that JIRA was that the TCCL was set to an incorrect classloader during the lifecycle invocation(s) of the MBean instance. The fix ensures that the TCCL now corresponds to the classloader of the deployment, through which the MBean was deployed, thus treating it similar to EE components.