I was having troubles setting up persistence for my test XMBean using v4.0 DR3, so I 
dived into the code and fixed it. Or at least, it works for me. Basically, the 
constructor

public ModelMBeanInfoSupport(String className, String description,
      ModelMBeanAttributeInfo[] modelAttributes,
      ModelMBeanConstructorInfo[] modelConstructors,
      ModelMBeanOperationInfo[] modelOperations,
      ModelMBeanNotificationInfo[] modelNperations, Descriptor mbeandescriptor)

at line 179 doesn't use the last arg. The method setMBeanDescriptor() is passed 
createDefaultDescriptor(). I think it should be passed mbeandescriptor. When I put in 
this change and re-ran the code, it worked. Thus it is now:

         setMBeanDescriptor(mbeandescriptor);

Note that inside setMBeanDescriptor if the arg is null then it automatically creates a 
default descriptor for you so you need not check for null. Is this fix correct?

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827498#3827498";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827498>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to