EAR wizard

This is a feature of JBuilder Enterprise.

Use the EAR wizard to create Enterprise Archive (EAR) files.

EAR files contain other archive files that together make up an enterprise application. The format of an EAR file is the same as that as a JAR, but it has an .ear file extension instead. The EAR wizard also creates an EAR group that appears as a node in your project. When you compile the EAR group node, it contains the output EAR file.

To display the EAR wizard, choose File|New to open the object gallery, click the Enterprise tab, and double-click the EAR icon.



Enter Basic Archive Attributes

This is a feature of JBuilder Enterprise.

On the first page of the wizard you select a name for EAR file and the node that appears in the project pane and specify where you want the resulting .ear file located.

Name

Specify the name of the EAR group by accepting the default name or by entering a name of your choosing. This node appears in the project pane with the file extension of .eargrp. It contains the file specified as the output EAR file once the EAR group is compiled.

Output EAR File

Name

Specify the name of the EAR file you want to create by accepting the suggested name or by specifying one of your choosing. The EAR file will have an .ear file extension.

Path

Specify where you want the EAR file stored or accept the suggested path.



Add EJB-JAR Modules

This is a feature of JBuilder Enterprise.

Use this page to specify the JAR files containing the enterprise beans you want to include in this EAR file. For information about EJB modules, see "Creating enterprise beans with JBuilder."

EJB Modules

Click the EJB Modules tab and from the list of available EJB modules in your current project, check the check box next to those you want to include in the EAR file.

External JAR Files

To add JAR files for enterprise beans that aren't in an EJB module in the current project, click the External JAR Files tab, click the Add button, and navigate to the location of the EJB JAR files you want included. As you add JAR files, the list of External JAR Files grows.



Add Connector Modules

This is a feature of JBuilder Enterprise.

Use this page to specify the Resource Adapater Archive (RAR) files you want to include in this EAR file. For information about RAR files, see "About Resource Adapters" in Sun's J2EE Tutorial at http://java.sun.com/j2ee/tutorial/doc/Connector2.htm.

RAR Archive Nodes

Click the RAR Archive Nodes tab and from the list of available RAR archive nodes in your current project, check the check box next to those you want to include in the EAR file.

External RAR Files

To add external RAR files to the current project, click the External RAR Files, click the Add button and navigate to the location of the resource adapter archives you want included. As you add RAR files, the list of External RAR Files grows.



Add Java Client Modules

This is a feature of JBuilder Enterprise.

Use this page to specify the J2EE application client JAR files you want to include in this EAR file.

JAR Archive Nodes

Click the JAR Archive Nodes tab and from the list of available JAR nodes for J2EE client applications in your current project, check the check box next to those you want to include in the EAR file.

External JAR Files

To add external J2EE client application JAR files to the current project, click the External JAR Files tab, click the Add button and navigate to the location of the JAR files you want included. As you add JAR files, the list of External JAR Files grows.



Add Web Modules

This is a feature of JBuilder Enterprise.

Use this page to specify the WebApp nodes and any external Web Archive (WAR) files you want to include in this EAR file. For information about WebApps and WAR files, see "Working with WebApps and WAR files."

You must specify a different context name for each web module, whether the module is from a WebApp node or from an external WAR file. One blank context name is allowed. The blank web module becomes the default web context for the enterprise application.

WebApp Nodes

Click the WebApps Nodes tab and, from the list of available WebApp nodes in your current project, check the check box next to those you want to include in the EAR file. When you check the check box, a default context name appears. You can edit this context name if you choose.

External WAR Files

To add external WAR files to the current project, click the External WAR Files tab, click the Add button, and navigate to the location of the WAR files you want included. As you add WAR files, the list of External WAR Files grows.



Add Other Arbitrary Files

This is a feature of JBuilder Enterprise.

Use this page to add any other files you want to add to the resulting EAR group. The file can be of any type, including non-J2EE types.

Click the Add button to display the Select One Or More Files dialog box and use the dialog box to specify the file you want to add. Continue adding files until you've specified all the files you want to add.

To remove a file from the EAR group, select the row in the grid containing the file name and click Remove.