Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Web Tools Guide
Previous Page Home Next Page

Exporting EJB 2.x projects to EJB JAR files

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:

  1. In the Project Explorer view of the Java™ EE perspective, right-click the EJB project that you want to export and select Export > EJB JAR File .
  2. In the EJB Project drop-down list, select the project you want to export if the name is not already filled in for you.
  3. In the Destination field, provide the full path and JAR file name for the exported EJB module.
  4. Optional: To include source files in the exported JAR file, select the Export source files check box.
  5. Optional: If you are exporting to an existing JAR file and you do not want to be warned about overwriting it, select Overwrite existing file.
  6. Click Finish.

To deploy your EJB JAR file to an application server after you export it, you need to use the deployment tools provided by the vendor of that server.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire