4.5. Assembling and deploying the EJB

This step consists of packaging the EJB class files, along with an XML deployment descriptor, into a JAR archive. It is perfectly possible to do these steps manually, using command-line tools or Ant build scripts. However, the tricky part for beginners is the construction of the XML file, which is not intuitive. Most EJB server vendors provide graphical utilities to package the files and create deployment descriptors, and I will assume that is how we will proceed here. When you gain more familiary with EJB development, you may find it quicker to use build scripts.

The J2EE Reference Implementation does not allow EJB-JAR files to be deployed directly (although the EJB Specification allows products to do this ...

Get Applied Enterprise JavaBeans™ Technology 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.