I think I found a solution to my problem ... after Googling quite a while.
Instead of using one of the more komplex registerMBean methods I can create an instance of XMBean with the deployment descriptor as a parameter in it's constructor and simply register it as regular MBean ... sorry for having bothered you.
I need to dynamically create an XMBean for a project. I'm not quite following how you would do this from what you have posted. Could you outline the steps in more detail or provide some sample code?
Ok ... I finally get it. Chris is referring to using the constructor for an "XMBean", not the constructor for his xmbean class. To do this, you pass an instance of your mbean (subclass of ServiceMBeanSupport) as the resource to the XMBean construtor and a url to the xml descriptor file.