Packaging EJBs for Deployment

A J2EE EJB module is packaged as an EJB JAR file which contains one or more EJB components as well as the standard J2EE EJB deployment descriptor, ejb-jar.xml, and possibly target-specific deployment descriptors, as well. Once you've created the deployment profile, you can deploy the application to an application server or as an archive file.

EJB Components can also be deployed with a test client. See Packaging EJB Components for Testing.

To package a web application for deployment:

  1. Create a EJB JAR File deployment profile for your project. A profile may have already been created for your project. If you wish to deploy to multiple targets, create a separate profile for each.

  2. Add a ejb.xml deployment descriptor to your project, if it is not already present. Normally, this file is created with the EJB JAR File deployment profile.

  3. Add target-specific deployment descriptors, if required, and not already present:

Note:


About J2EE Deployment
About J2EE Archive Formats
About Deployment Profiles
About Deployment Descriptors
Packaging J2EE Applications
Deploying J2EE Applications
Deploying Applications to J2EE Application Servers

 

Copyright © 1997, 2004, Oracle. All rights reserved.