A JAR file must be created to contain the enterprise bean. You can create a new stand-alone JAR module, create a new JAR file in an application, or add this bean to an existing JAR file. This page of the Edit Enterprise Bean Wizard enables you to specify and/or create the EJB JAR file that will contain your enterprise bean and determine its content.
Selecting the Location of the EJB JAR
Select a location to either create a new JAR module (as part of an application or stand-alone JAR), or select an existing JAR or EAR to which you want to add this enterprise bean.
Select Create New Stand-Alone JAR Module if you intend to package the bean in a new JAR module and deploy the jar as a stand-alone module. Enter the JAR Location and JAR Display Name in the JAR Naming section of the page.
Select Create New JAR File in Application if you intend to package this bean in a new JAR and add the existing jar to an EAR file. Select the EAR to which you want to add this enterprise bean from its drop-down list.
Select Add to Existing JAR File if you have already created the JAR file to which you want to add the enterprise bean. Select the JAR file to which you want to add the enterprise bean from its drop-down list.
JAR Naming
Use this section to provide the location of the JAR file and the name under which it will display in the deploytool tree.
JAR Location. If you are creating a new stand-alone JAR, enter a name and location in the text box, or select the Browse button beside the text field to select the location and enter its name using a file selection dialog.
JAR Display Name. Enter the name under which you want this JAR file to display in the deploytool tree.
Adding Content to EJB JAR
Select the Edit button beside the Contents box to browse to select and add the class files for the enterprise bean and interface files that you want to include in this JAR file.
This will display the Edit Contents Dialog. Select the files in the top pane, then select the Add button. If you are creating an
or bean, you must enter the , the , and/or and any helper classes. When local or remote interfaces are specified, there will be a specified of the same variety.
If you are creating a bean, you must specify the enterprise bean class.
Deleting Content From JAR
In the Edit Contents dialog, select the file or directory from the Contents field and click Remove.
Optional Settings
You may enter the following optional settings for your EJB JAR:
Click Sun-specific Settings to open the Sun-specific Settings dialog box for options specific to
Sun Java System Application Server.
Click Description to enter a description of the EJB JAR file.
Click Manifest Classpath to go to the Manifest Classpath dialog and add a library JAR reference to the . You select Library JARs in the application and Add them to the Manifest Classpath field. JARs may be selected and removed from the Manifest Classpath when a mistake has been made.
Click Icons to go to the Icons dialog and choose the icon that will represent the EJB JAR file in the tree. You can select only GIF or JPEG files that are either 16x16 or 32x32. If you do not choose an icon, the default icon will be used.