4. Writing the Deployment Descriptor

The Deployment Descriptor, which should be named ejb-jar.xml, is an XML file that contains deployment instructions, resources requirements and security roles of the application to be deployed.

Example 1.4. ejb-jar.xml

<?xml version="1.0" ?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN'
  'http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd' >
<ejb-jar>
   <description>Single stateless session bean to get information about EJB Workshop</description>
   <display-name>About Bean</display-name>
   <enterprise-beans>
      <session>
         <description>Simple About Bean to get info about the Workshop</description>
         <display-name>About Bean</display-name>
         <ejb-name>About</ejb-name>
         <home>nl.datraverse.workshop.ejb.beans.AboutHome</home>
         <remote>nl.datraverse.workshop.ejb.beans.About</remote>
         <ejb-class>nl.datraverse.workshop.ejb.beans.AboutEJB</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Container</transaction-type>
      </session>
   </enterprise-beans>
</ejb-jar>