Packaging and Deploying the EJB—Overview

Once we have the bean working in the JDeveloper environment, we can package it in preparation for deployment to an application server. We'll do this by using JDeveloper in the next section, but first, let's take a look at the steps that would be involved were we to do it manually.

The J2EE specification defines a way to package Web applications and EJB applications into modules and a way to package these modules into an enterprise application. An enterprise application is packaged in an EAR file. The EAR file, in turn, can contain either EJB modules packaged as JAR files, Web applications packaged as WAR files, or both.

  • Enterprise application— EAR file

  • EJB module— JAR file

    • EJBs (Java classes)

    • Deployment ...

Get Java™ Oracle® Database Development 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.