-
1. Re: dynamically create XMBeans?
chrisdutz Jun 19, 2004 6:44 AM (in response to chrisdutz)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.
Chris -
2. Re: dynamically create XMBeans?
ffrederick Nov 15, 2004 1:01 PM (in response to chrisdutz)Chris,
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?
Thanks -
3. Re: dynamically create XMBeans?
ffrederick Nov 16, 2004 3:57 PM (in response to chrisdutz)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.