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

Importing EJB 2.x JAR files

You can import beans and other metadata from an EJB JAR file into a new or existing EJB project.

To import an EJB JAR file into an EJB project using the Import wizard, complete the following steps:

  1. In the Project Explorer view of the Java™ EE perspective, select File > Import .
  2. Under Select an import source, click EJB > EJB JAR file and click Next.
  3. In the EJB JAR file field, enter the location and name of the EJB JAR file that you want to import.
  4. In the EJB Project field, a new project name or select an EJB project from the drop-down list.
  5. In the Target runtime drop-down list, select the application server that you want to target for your development. If no Target servers exist, create one using the New button. The target server choice affects the run time settings by modifying the class path entries for the project. This selection affects the run time settings by modifying the class path entries for the project.
  6. Specify whether you want to add the new module to an enterprise application (EAR) project.
  7. Optional: Select the Add project to an EAR check box to add the new module to an enterprise application (EAR) project. Type a new project name or select an existing enterprise application project from the drop-down list in the EAR Project combination box. Or, click the New button to launch the New Enterprise Application Project wizard. Click Next.
  8. Click Finish to import the EJB JAR file.
Tip: In the Project Explorer view you can also copy enterprise beans by dragging and dropping them from one EJB project to another EJB project. The import wizard will open to help you merge existing enterprise beans.
Tip: The following paragraph applies to Windows. You can quickly drag and drop an EJB JAR file from the Windows® Explorer or desktop onto the Project Explorer view. The Import wizard will open with appropriate fields already populated. If you drop on an existing EJB module, the wizard will import into that EJB module. If you drop on an enterprise application, the wizard will bind the new EJB module to this EAR.
Note: The .ser files in an EJB 1.0 JAR are converted into the ejb-jar.xml file for EJB 1.1 during an import.

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