Chapter 7. Packaging and Deployment

Create J2EE projects

Creating an application client project

You can use a wizard to create a new application client project and add it to a new or existing enterprise application project.

Application client projects contain the resources needed for application client modules. Application client projects contain programs that run on networked client systems. An application client project is deployed as a JAR file.

To create a J2EE application client project:

  1. In the J2EE perspective, select File > New > Application Client Project.

    Application Client Project

  2. In the Name field, type a name for the application client project.

  3. To change the default Project location, click the Browse button to select a new location. If you specify a non-default project location that is already being used by another project, the project creation will fail.

  4. Click Show Advanced.

  5. In the J2EE version drop-down list, select the J2EE version to which you want your application client project to adhere.

  6. In the Target server drop-down list, select the application server that you want to target for your development. This selection affects the run time settings by modifying the class path entries for the project.

  7. Specify whether you want to add the new module to an enterprise application (EAR) project.

  8. In the EAR project combination box, type a new project name or select an existing enterprise application project from the drop-down list. Or, click the New button to launch the New Enterprise Application Project wizard.

    Select an existing enterprise application project

    Note: If you type a new EAR project name, the EAR project will be created in the default location with the lowest compatible J2EE version based on the version of the project being created. If you want to specify a different version or a different location for the enterprise application, you must use the New Enterprise Application Project wizard.

  9. Select Create a default Main class if you want the wizard to generate a Java class to be the application entry point.

  10. If you are adding the new module to an existing enterprise application, click Next to specify module and JAR file dependencies on the next page of the wizard. This updates the manifest class-path and Java project build path with the appropriate JAR files. If you are creating a new enterprise application project, or if you have no dependencies to specify, click Finish.

    JAR file dependencies

    Application Client modules, EJB modules, and Web modules can all have dependencies on EJB modules or utility JAR files. Modules cannot depend on WAR or Application Client JAR files.

  11. Click Finish.

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