2 Replies Latest reply on Jan 8, 2004 1:05 PM by andrewboyd

    xdoclet, xmbean & service.xml

    joa23

      Hi,

      I have trouble to generate the jboss-service.xml via xdoclet. Sorry I could found anything about this issue.
      ...

      <mbean code="de.foo.o2.cmd.JmxTester"
      name="de.foo.o2.cmd:service=JmxTester"
      xmbean-dd="de/foo/o2/cmd/JmxTester.xml">
      <!--An MBean that just test deployment-->

      ...

      I couldnt found any possibility to generate the xmbean-dd value without the package.
      It should looke like
      xmbean-dd="JmxTester.xml"

      My ant script looks like this:
      ...



      ...

      Where i have to add an attribute to define generate this value without a package path?
      Do i have to edit the template?

      Thanks for any hints.

        • 1. Re: xdoclet, xmbean & service.xml

          You probably have to figure out how to do it with XDoclet merge files or some such.

          • 2. Re: xdoclet, xmbean & service.xml
            andrewboyd

            besides removing the path what you need is META-INF/MyDescriptor.xml

            I could not figure out how to do it with xdoclet either. So I generate
            it and it looks like what you are getting and then I change it by hand
            and add the META-INF.

            I also changed my ant script to require a cmd line arg to generate
            the descriptor file again i.e. -Dgen.descriptor=true