Annotation
The Java EE Version 6
platform programming model makes the XML deployment descriptors optional. Instead,
the information required for deployment are passed through annotation inserted
directly in the Java source file. Te Java EE server configures the component at
deployment and runtime.
Annotations are generally
used to embed data in a program that were otherwise introduced through
deployment descriptors. Backward compatibility is maintained through
maintaining optionally the use of deployment description files. But some
annotations may be overridden by entries in a Deployment Descriptor file.