View RSS Feed


Deployment Descriptors

Rate this Entry
by , 01-01-2012 at 04:40 PM (971 Views)
A deployment descriptor consists of a XML based text file along with .xml extension which describes deployment settings of a component. J2EE application along with modules consists of their deployment descriptor. Attention shall be paid to those elements that have been marked as bold in deployment descriptor files samples, given below.

Application.xml: is considered as a standard deployment descriptor of J2EE, which has structural information as following: WEB war modules, EJB jar modules, and <security-role> etc. Also, as EJB jar modules have been packaged as jars, similarly dependency libraries for example, log4j.jar or commonUtil.jar have been packaged. The application .xml descriptor distinguishes among 2 jar files which specify EJB jar module explicitly.

XML Code: This is XML of deployment descriptor for a J2EE application
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN"
<application id="Application_ID">
<module id="EjbModule_1">
<module id="WebModule_1">
<security-role id="SecurityRole_1">
<description>Management position</description>
ejb-jar.xml: is considered to be a standard deployment descriptor, for an EJB module.

web.xml: is considered to be a standard deployment descriptor, for a WEB module.

Submit "Deployment Descriptors" to Facebook Submit "Deployment Descriptors" to Digg Submit "Deployment Descriptors" to Submit "Deployment Descriptors" to StumbleUpon Submit "Deployment Descriptors" to Google

Updated 01-14-2012 at 06:41 PM by J2EE

Deployment Descriptor , Deployment