users@glassfish.java.net

Re: problem with annotation after adding ejb-jar.xml

From: Hong Zhang <Hong.Zhang_at_Sun.COM>
Date: Wed, 30 Apr 2008 13:53:58 -0400

No problem!

And this is actually not something glassfish specific (so you won't find
it in the glassfish doc), it is defined in JavaEE5 platform spec and
also in javadoc for various JavaEE5 schemas.

JavaEE5 platform spec:
Section EE8.4 Deployment
The attribute metadata-complete is used in the deployment descriptor to
specify whether the descriptor is complete.

Javadoc for "metadata-complete" attribute in ejb schema (ejb-jar_3_0.xsd):

    <xsd:attribute name="metadata-complete" type="xsd:boolean">
      <xsd:annotation>
        <xsd:documentation>

          The metadata-complete attribute defines whether this
          deployment descriptor and other related deployment
          descriptors for this module (e.g., web service
          descriptors) are complete, or whether the class
          files available to this module and packaged with
          this application should be examined for annotations
          that specify deployment information.

          If metadata-complete is set to "true", the deployment
          tool must ignore any annotations that specify deployment
          information, which might be present in the class files
          of the application.

          If metadata-complete is not specified or is set to
          "false", the deployment tool must examine the class
          files of the application for annotations, as
          specified by the specifications.

        </xsd:documentation>
      </xsd:annotation>

- Hong

glassfish_at_javadesktop.org wrote:

>Hong Zhang,
>THANK YOU!!!
>
>I copied frame of ejb-jar.xml from somewhere and didn't realized that there is that option set to "true".
>
>I've lost 3 hours on that today.
>
>I am now going to read whole glassfish documentation.
>Because fighting with such problems with some gaps in your knowledge about elementary things is really frustrating.
>[Message sent by forum member 'przemekp' (przemekp)]
>
>http://forums.java.net/jive/thread.jspa?messageID=272271
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>