You can ditch the MLet if you haven't got
The only thing you need to implement is
DefaultLoaderRepository for classloading.
I started splitting JBossMX a while ago.
There is a jbossmx-core.jar and
jbossmx-services.jar ("optional" stuff)
But I didn't get very far with it, only the
some javax.management classes. I didn't really
look at org.jboss.mx
You can probably reduce the size a lot by removing
modelmbeans? Although don't try this with the jboss4
You could implement your own URL classloader. The MLet implementation that is currently in the MX base is only a implementation of the service. You could fairly easily provide your own similar service implementation that behaves the same but extends YourURLClassloader (plus if you control the URLClassloader implementation you can get some nice management statistics out of it as part of the services management interface as well).