Show TOC

 Creating the Enterprise Bean ArchiveLocate this document in the navigation structure

Use this procedure to create a JAR file that contains the Calculator session bean and deployment descriptors - ejb-jar.xml and ejb-j2ee-engine.xml.

Prerequisites

You have created and compiled the Calculator enterprise bean in the project CalculatorEjb.

Procedure
  1. In the J2EE Explorer, select the project node CalculatorEjb and open the context menu.
  2. Choose Build EJB Archive.
  3. Confirm the message informing you that the build has been successful by choosing Ok.
Result

The archive file CalculatorEjb.jar has been generated. It contains all the classes of the EJB module project.

J2EE Explorer

Next step:

Now continue with creating the Web project .