Create an interface called MyMBeanAdapter, include whatever methods you want to expose. They must be public
Take your working class and add, implements WorkerClassAdapterMBean.
Implement the interface functions. deploy and give it a whirl. it's that easy