Packaging and Deploying Enterprise JavaBeans

The process of assembling components into modules, and modules into applications, is known as packaging. The Java ARchive (JAR) file format enables you to bundle multiple files into a single archive file. Enterprise beans use the JAR file format for packaging Enterprise JavaBeans in a generic and portable way.

The ejb-jar file is the standard format for packaging Enterprise JavaBeans. Figure 2.5 shows sample contents of an ejb-jar file. It contains deployment descriptor(s), one or more Enterprise bean classes, their home and component interfaces, and related files.

Figure 2.5. Standard ejb-jar file.

After you have packaged your Enterprise JavaBeans, you need to install and configure them in an EJB ...

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.