After you have tested your enterprise beans, you can export the
module into an EJB JAR file.
When you export an EJB project, the contents of the project are
exported into an EJB JAR file regardless of whether deployment code has been
generated or not. You can use the exported server-side JAR file as the client
JAR file, since it contains all of the required code from both a server-side
and client-side perspective.
Important: If
you use the Export EJB JAR file wizard to export an EJB project, the export
wizard does not include an EJB project's associated EJB client JAR project.
To include the EJB client JAR file, it is recommended that you export the
enterprise application EAR file that contains the EJB project. The resulting
EAR file will include any dependent EJB client JAR files as utility JAR files.
Alternatively, you can export the EJB client JAR project separately as a JAR
file.
To export an EJB project, complete the following steps: