3 Replies Latest reply on Sep 8, 2006 11:55 AM by kapilanand

    jboss.xml dtd with jboss service element?

    kapilanand

      I am not able to locate the DTD that allows defining "service" element under enterprise-beans element.

      There is a tutorial that says it can be done:
      http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/jboss_deployment_descriptor.html

      But the exmaple in this tutorial does not declare the DTD.

        • 1. Re: jboss.xml dtd with jboss service element?
          kapilanand

          And is there a way to generate this jboss.xml by using xdoclet?

          • 2. Re: jboss.xml dtd with jboss service element?
            bill.burke

            you can't be serious, XDoclet? Use annotations man...

            Asfar as your other question. There should be a jboss_5_0.xsd someplace.

            • 3. Re: jboss.xml dtd with jboss service element?
              kapilanand

              Well annotations can define the meta data ok, but i dont intend to use them for deployment related details.
              Deployment descriptor is the right place for it.
              For example I used jboss.xml for the local-jndi-name only and used annotations for Management interface, Local interface and declaring the class as service, but this hard-codes the servicename. I was trying to figure out a way to override the service name from jboss.xml, and that's why looking for the DTD.

              Of course i can replace the annotation values in the source at the time of build , but that requires my code to be checked-out (writable), plus I dont know how the java5 enabled IDE behave on scanning the variable names instead of the valid values.
              So even a hard coded deployment descriptor is of same category. If xdoclet is out of picture, i would prefer to store templates for deployment-descritors and populate them to generate packages for release.

              In case you have a better idea, do let me know.