Oracle® Application Server Containers for J2EE Enterprise JavaBeans Developer's Guide
10g Release 2 (10.1.2) Part No. B15505-01 |
|
![]() Previous |
![]() Next |
After you have finalized your implementation and created the deployment descriptors, archive your EJB application into a JAR file. The JAR file should include all EJB application files and the deployment descriptor.
Note: If you have included a Web application as part of this enterprise Java application, follow the instructions for building the Web application in the Oracle Application Server Containers for J2EE User's Guide. |
For example, to archive your compiled EJB class files and XML files for the Hello
example into a JAR file, perform the following in the ../hello/ejb_module
directory:
% jar cvf helloworld-ejb.jar .
This archives all files contained within the ejb_module
subdirectory within the JAR file.