Work with Web and Application Deployment Descriptor Editors

Application Deployment Descriptor editor

The Application Deployment Descriptor editor includes scrollable pages and collapsible sections that represent the various properties and settings in the deployment descriptor (application.xml) and other metadata written to bindings and extensions files. The editor is dynamic, and sections and pages are created based on the application deployment descriptor version and the workbench capabilities that are enabled.

The core function is typically located at the top of an editor page. To see core pages and sections, set focus on the editor and press Alt + Shift + C. The core pages, sections, headers, and tabs will highlight blue and remain in this state until you press Alt + Shift + C again. The extensions and bindings are usually nested sections and found at the bottom of the editor pages. Collapsing a section hides the content, but leaves the heading information. This is useful in filtering through the data and properties on each page. The editor remember the sections that you collapse when you close and reopen the editor. Also, you can resize sections by dragging a hidden border at the end or beginning of each section.

The application deployment descriptor editor typically modifies the following resources:

The application deployment descriptor editor typically displays the following pages, sections, and views:

Overview page

The Overview page in the application editor provides a quick summary of the contents in the application deployment descriptor. It includes the following sections: General Information, Modules, Security Roles, Icons, and WebSphere Extensions.

Overview page

Module page

Use the Module page to add, edit, browse, and remove EJB, Web, and Application Client modules from the enterprise application. When you select a module in the Modules list, its attributes are displayed on the fields on the right side of the pane. The list of fields changes dynamically to match the type of module selected.

Module page

Security page

Use the Security page to view, add, remove, gather, and combine security roles. The Gather option rolls up all security roles defined in modules that are included in the application. The resulting list is the union of all roles in all modules in the application. The Replace option replaces an original role with another, existing role. The original role is removed from the application and any modules within the application.

Security page

Deployment page

For enterprise applications that are targeted to use a WebSphere Application Server runtime environment, you can use the Deployment page to specify additional options for deploying to the server. For example, you can define JDBC providers, data sources, resource properties, and the applications that you want to deploy on the server.

Deployment page

Source page

Use the Source page to view and modify the application.xml file directly. The XML on the source page changes dynamically when the deployment descriptor is edited, and the other pages of the application deployment descriptor editor reflect changes that you make on the Source page. Editing the XML source is not the recommended method for editing the deployment descriptor. It is suggested that you make as many changes as possible using the other pages and sections of the editor.

Source page

The Web Deployment Descriptor editor

The Web Deployment Descriptor editor lets you specify deployment information for modules created in the Web development environment. The information appears in the web.xml file. Note that you use the Web deployment descriptor to set deployment descriptor attributes. You do not use it to manipulate Web resource content.

The web.xml file for a Web project provides information necessary for deploying a Web application module. It is used in building a WAR file from a project. Whenever you create a new Web project, a minimal web.xml file is automatically created in WEB-INF under the project's WebContent folder.

The Web Deployment Descriptor editor is dynamic and includes many tabbed pages (views) that represent various properties and settings in the deployment descriptor. For example, you can click the Servlets tab to display the Servlets page, in which you can add or remove servlets and JSPs that are used in the Web application.

The Web Deployment Descriptor editor includes the following tabbed pages:

Although you can edit web.xml directly, we recommend that you edit the multiple tabbed pages in the Web Deployment Descriptor editor. As you specify deployment information in these tabbed pages, the editor automatically incorporates the appropriate XML tagging in web.xml (or in the appropriate .xmi file).

In addition to the configuration information in the web.xml file, other deployment descriptors in a Web project include the following information:

If you import a WAR file into an existing Web project, you can include the deployment descriptor files included in the WAR file as the Web project's new deployment descriptor. Any specific deployment information already defined in these files is used when deploying the updated Web application.

The web.xml file can be updated automatically to reflect changes to your Web project. For instance, when you use the New Servlet wizard to create a new servlet in a Web project, the wizard places the appropriate servlet entry into the web.xml file.

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