This wizard creates a new containing an EJB module. You open the wizard by opening the
New
Project wizard and selecting the EJB Module with Existing Sources template
from the Enterprise category.
Your existing EJB module source does not have to adhere to any particular directory
structure. You specify the locations of the configuration files, libraries,
and source roots. The only requirement is that the module contain a valid ejb-jar.xml
deployment descriptor.
In the Name and Location page, you have to set the following properties:
Location. Specifies the parent folder that contains the existing
EJB module. Typically, this is the folder that contains the configuration
files folder, the libraries folder, and the primary source folder. The IDE
scans this folder and tries to suggest locations for the Configuration Files
and Libraries fields.
Project Name. Specifies the display name of the project.
Project Folder. Specifies the location where the module's project
folder is created. The project folder contains project metadata like the project's
Ant build script. You can place the project folder in the same location as
your sources or in a separate location.
Add to Enterprise Application. Lets you add the EJB module to any
open enterprise application project.
Server. Specifies the server to which the EJB module is deployed.
You can only deploy EJB modules to the Sun Java System Application Server.
You can have multiple remote instances of the Sun Java System Application
Server registered. To register servers, choose Tools > Server
Manager.
J2EE Specification Level. Specifies the J2EE level against which
your enterprise application will run. The IDE does not support J2EE 1.3 EJB modules
and automatically updates the version number of your EJB module's ejb-jar.xml
to 1.4. The J2EE 1.4 specification is fully backwards-compatible, so upgrading
the specification level does not change the behaviour of your code.
Source Level Recommendations. One of the following checkboxes will
appear if JDK 1.5 is set as the default platform in the Java
Platform Manager. The J2EE 1.4 and J2EE 1.3 specifications do not recommend
JDK 1.5. Therefore, if you want to create a portable application, select the
appropriate checkbox:
Use JDK 1.4 and Set Source Level to 1.4. This checkbox appears
if JDK 1.4 is available in the Java Platform Manager. Select this checkbox
to set both your JDK level and your source level to 1.4.
Set Source Level to 1.4. This checkbox appears if JDK 1.4 is
not available in the Java Platform Manager. Select this checkbox so that
at least your source level is set to 1.4.
Set as Main Project. Specifies the project as your main entry point
and place of work.