Import and export J2EE modules

Changes to resources within an Enterprise Application project

For WebSphere Application Server, if you change any resource within an Enterprise Application project while it is running on the server, the server will DYNAMICALLY restart the EAR.

For WebSphere Application Server v6.0, if you change any resources within the WebSphere Enhanced EAR editor, you need to RESTART the server and RE-PUBLISH the application. The WebSphere Enhanced EAR editor is the Deployment page in the Application Deployment Descriptor editor.

Associating servers with projects

You can associate a portal or portlet project with a server when you select Publish, Run on Server, Debug on Server, or Profile on Server from the project's pop-up menu.

To associate one or more projects to a server in advance:

  1. From the Server view, highlight a server, right-click and select Add and remove projects.

    Add and remove projects

  2. Use the Add and Remove buttons to add or remove projects from this server definition.

    Add and Remove buttons

  3. Select Finish.

Importing Web archive (WAR) files

A Web Archive (WAR) file is a portable, packaged Web application that you can import into your workspace.

Note: if you want to work with an existing workbench Web project or share Web projects, we highly recommend that you use the Project Interchange feature, as this feature preserves all your metadata.

Before importing a WAR file, you should first determine if the WAR file contains needed Java source files. When importing a WAR file into an existing Web project, the imported Web deployment descriptor files are either not changed or overwritten by the ones included in the imported WAR file, based on your response to the prompt that is provided. In either case, this action does not represent a merging of the two sets of deployment descriptors.

To import the Web project resources in a WAR file into your workspace, complete the following steps:

  1. Select File > Import.

  2. In the Import dialog, select WAR file and then click Next.

  3. Locate the WAR file that you want to import using the Browse button.

    Locate the WAR file

  4. The wizard assumes you want to create a new Web project with the same name as the WAR file. If you accept this choice, the project will be created with the same servlet version as specified by the WAR file and in the same location. If you want to override these settings, you can click New and specify your new settings in the Dynamic Web Project wizard:

    Dynamic Web Project wizard

    If you want to import the WAR file into an existing Web project, you can select the project from the Web project drop-down list. Note that if you select an existing project, you must decide whether you want to select the setting to Overwrite existing resources without warning.

  5. Click Finish to populate the Web project.

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