The Java Jar Dependencies properties page is used to setup jar dependencies between modules in an EAR. To launch this properties page right click on any j2ee module project (application client, web, ejb, connector) and select Properties-> J2EE Module Dependencies--> J2EE Modules
- Create an EAR with all the default modules (Application Client, Web, EJB, Connector) by going through the second page in the EAR creation wizard.
- Right click on the Web module created and select Properties-> J2EE Module Dependencies--> J2EE Modules
- The EJB and Connector modules show up as the available modules that the web module can have dependency on in the EAR. Select the ejb module and click OK or Apply
Result: The following changes occur on setting the jar dependency of the ejb module on the web module.
The MANIFEST.MF file gets an entry for each selected module.
The .classpath file of the module gets updated with an entry for the selected modules.
The .project files gets updated with the project dependency.
- The Manifest Class-Path non editable text area show the list of select modules that are added on to the Manifest.
- The Up and Down buttons are used to move the order or the selected modules that are added on to the Web Module in this case.
- The 3 radio buttons Use EJB JARS, UseEJB Client JARs and Allow both are used for filtration of having only client jars or EJB Jars or both as the available modules for dependency.
Right click on Java project to invoke this property page, verify that no errors are thrown.