Importing an enterprise archive (EAR) file migrates the EAR file
to the assembly tool and defines a new enterprise application project using
the tool.
Before you begin
This article assumes that you have an existing
enterprise application that you want to work on in an
assembly tool such as
Application Server Toolkit (AST) or Rational Web Developer and that you want
to deploy onto an application server.
Why and when to perform this task
You can import an EAR file and define a new enterprise application
project using an assembly tool.
Steps for this task
- Start an assembly tool.
- If you have not done so already, configure the assembly tool for work on J2EE modules.
- Click File > Import > EAR file > Next. Alternatively,
you can right-click Enterprise Applications in a view such as the Project
Explorer view and click Import > EAR file. Or, on Windows platforms,
you can drag the EAR file and drop it on a view.
- In the Import dialog, define the EAR file:
- Specify the EAR file to import. Use Browse to
locate the EAR file and specify its full path name.
- Optional: Specify a new enterprise application project
name. A project name is assigned automatically. The project name
you specify must be unique within the directory.
- Specify whether to import an EAR project.
- Optional: Specify whether to overwrite and delete
existing resources.
- Select a target server. Select the WebSphere
Application Server v6.0 target server to use services such as the following:
- Optional: Click Next.
- Optional: Specify whether to allow nested projects
to be overwritten.
- Optional: Specify whether to import a file for partial
development of an EAR file.
- Optional: Select JAR files to be imported.
- Optional: Specify the project location. Use Browse to
locate the directory for the project files.
- Click Finish.
Result
Files for the enterprise application are shown in the Project Explorer
view under
Enterprise Application.
What to do next
Update the enterprise application as needed and
deploy it to an application server.