Declaring the Deployment Descriptor

Listing 14.2 shows the ejb-jar.xml deployment descriptor for the OrderVerifier enterprise bean. ejb-jar.xml describes the enterprise bean's deployment properties, such as its bean type and structure. The file also provides the EJB container with information about where it can find and then load the bean class. Message-driven beans don't have home or component interfaces, so you don't specify them in the deployment descriptor. The deployment descriptor may specify the JMS Destination type (Queue or Topic) to which the bean should be assigned.

Listing 14.2. The Full Text of day14/ejb-jar.xml
 <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd"> ...

Get Sams Teach Yourself EJB in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.