Appendix D. Deployment descriptors reference
In this appendix we list all the elements of EJB 3 descriptors. The appendix is designed to be a quick reference you can consult when you plan to use a descriptor in your enterprise application. Each descriptor is defined by an XML schema, and we describe the elements of the schema.
As we have explained throughout the book, you have a choice of using annotations, XML descriptors, or both, to define these elements. We have mainly used annotations throughout this book, so here we also list what annotation is overridden by the descriptor, when applicable.
This appendix has three sections. The first section (D.1) provides a reference to ejb-jar.xml, which is the descriptor for session beans and MDBs. The second section (D.2) provides a reference to persistence.xml, the descriptor that makes a module a persistence module. The third section (D.3) describes the O/R mapping metadata used by JPA.
The schemas are referenced at http://java.sun.com/xml/ns/javaee/#2.