1 Reply Latest reply on Feb 19, 2002 7:27 AM by Juha Lindfors

    Are there examples of XMBean use?

    David Jencks Master

      I wrote an xdoclet template that generates the xml descriptor for XMBean from the tagged java source code. Now I'd like to find out if it works. Are there any examples of using XMBean with an xml descriptor? Is there a suggested convention for where to put the xml descriptor relative to the class? If I write some tests should I put them in testsuite or jmx?

      So far the xdoclet template will generate everything in the dtd but has some limitations:
      -you have to explicitly specify constructor and parameter types and names, even though they are right there looking at you in the method signature
      -you have to specify access even though it could be determined from tags on get/set methods.
      -attributes that are stored in the ModelMBean but not the underlying class are not supported.
      -attribute get and set methods have to be the standard javabean convention ones

        • 1. Re: Are there examples of XMBean use?
          Juha Lindfors Master

          > I wrote an xdoclet template that generates the xml
          > descriptor for XMBean from the tagged java source
          > code. Now I'd like to find out if it works. Are
          > there any examples of using XMBean with an xml
          > descriptor?

          Since you're the second person in a day (you and Andreas) to ask how it works, I will add a test case to the jmx test suite that creates a simple mbean by loading an xml descriptor (also I need to make sure the JBossMX version of XMBean still works, as it has been out of the test loop for a while).

          > Is there a suggested convention for
          > where to put the xml descriptor relative to the
          > class?

          No, not really, any URL will do, either public from a web server or local in a filesystem.

          > If I write some tests should I put them in
          > testsuite or jmx?

          Please use the jmx test suite for now. It is the most up to date and that is what should be used.

          -- Juha