Create and locate resources in the appropriate location of the project hierarchy

Adding project utility JAR files

You can add existing Java projects in your workspace to an enterprise application as utility JAR files.

For each utility Java project that you add to the enterprise application, a <utilityJARMappings> element is defined in the .modulemaps file in the META-INF folder.

Tip: Shortcuts for adding modules or utility JAR files to an enterprise application:

To add utility JAR files to the enterprise application:

  1. In the Project Explorer view of the J2EE perspective, right-click the Deployment Descriptor for your enterprise application project and select Open With > Deployment Descriptor Editor to open the Application Deployment Descriptor editor.

  2. In the Project Utility JARs section of the Module page of the editor, click Add. The Add Utility JAR wizard appears.

    Add Utility JAR

  3. Select one of the projects from the list.

  4. Click Finish.

    Project Utility JAR

    
    <?xml version="1.0" encoding="UTF-8"?>
    <modulemap:EARProjectMap ...>
    	...
    	<utilityJARMappings xmi:id="..." projectName="BankJava" uri="BankJava.jar"/>
    </modulemap:EARProjectMap>
    								
    								

  5. If the target server specified for the project is different from the target server specified for the enterprise application, the Change Target Server dialog opens. Click Yes to update the target server for the project to be the same target server specified for the enterprise application.

To remove a utility Java JAR file from the enterprise application, select the JAR file from the list of utility JAR files, and click Remove.

Professional hosting     Belorussian informational portal         Free SCBCD 1.3 Study Guide     Free SCDJWS 1.4 Study Guide     SCDJWS 1.4 Quiz     Free IBM Certified Associate Developer Study Guide     Free SCJP 5.0 (Tiger) Study Guide     Free Mock Exam Engine     Free SCWCD 1.4 Study Guide     IBM Test 000-287. Enterprise Application Development with IBM WebSphere Studio, V5.0 Study Guide