I want to take advantage of xdoclet's jboss.xmbean generation, however it is very 
frustrating.  Especially in 3.2.4 CVS.

Right now in 3.2.3, I have to do this to get the ServiceMBeanSupport methods to show 
up:
                                                                                       
                                                                        
  /**
   * @jmx.managed-operation
   */
  public void destroy() { super.destroy(); }
                                                                                       
                                                                        
  /**
   * @jmx.managed-operation
   */
  public void create() throws Exception { super.create(); }
                                                                                       
                                                                        
... etc.

This no longer works in 3.2.4.  All my X-MBeans broke.  It appears in 3.2.4 I have to 
expose a "jbossInternalLifecycle" operation as well.  (Couldn't this method name be 
shortened to "lifecycle"?  It sticks out like a sore thumb in the JMX console.)

  /**
   * @jmx.managed-operation
   *  description="lifecycle"
   *  name="op" type="java.lang.String"
   */
  public void jbossInternalLifecycle(String s) throws Exception 
      { super.jbossInternalLifecycle(s); }
                                                                                       
                                                                        
I know there are entitites in the xmbean-dtd, like &defOps; but pasting this entity in 
the generated format is impossible to do with xdoclet.  Besides, it's an ugly hack.

This is my suggestion.  Add an attribute to the  element that indicates the parent, 
like so:

<?xml version="1.0" encoding="UTF-8"?>

         ....
         org.jboss....

Then, even if somebody fiddles with ServiceMBeanSupport, people's code doesn't break.  
It'd be very easy to "merge" the two documents together in the loader.  Then all that 
remains is patching xdoclet ...


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830891#3830891

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830891


-------------------------------------------------------
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-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to