Creating the Enterprise Bean Archive

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.


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


       1.      In the J2EE Explorer, select the project node CalculatorEjb and open the context menu.

       2.      Choose Build Ejb.jar File.

       3.      Confirm the message informing you that the build has been successful by choosing Ok.


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

Next step:

Now continue with creating the Web project.