Adding Descriptions to application.xml

In addition to the predefined entries, you will now record specific deployment information in the J2EE standard descriptor application.xml.



General Descriptions

Display Name

Returns a label for the Ear file to be created.


Returns a description for the deployment descriptor as a whole.

Special entries for modules

Context root

The context root defines the root directory for the URL from which the application is called.

The appropriate URL (for localhost) is: http://localhost:50000/<Context-Root>


The structure of your QuickCarRentalEar project is currently displayed in the J2EE Explorer.


Specifying the general properties



       1.      Double-click the application.xml node of the QuickCarRentalEar project structure.

The Developer Studio opens a multipage editor, which allows you to record descriptions in the standard deployment descriptor application.xml.

       2.      On the General tab, enter the name QuickCarRentalApplication in the Display Name field, along with a short text in Description – such as Modules for car rental example.

Specifying the context root

       3.      Choose the Modules tab.

       4.      Choose the project node QuickCarRentalWeb.war in the left pane.

       5.      Change the name of the predefined value in the Context Root field to QuickCarRental.

The following entries are automatically added to the XML source:




   <description>Modules for car rental example.</description>













Thus the URL for your car rental application (for localhost) is: http://localhost:50000/QuickCarRental

       6.      Save your changes to the deployment descriptor entries by choosing the appropriate icon in the toolbar.


You have entered all the descriptions that your application needs in the standard J2EE deployment descriptor application.xml.

Since no J2EE Engine-specific entries are needed in the deployment descriptor application-j2ee-engine.xml for this application, the Enterprise Application project is now completely specified. You can now continue by creating a appropriate archive file for the complete car rental application.

Next step:

Creating DataSource Alias