Você está na página 1de 2

Q) What is DEPLOYMENT DESCRIPTOR (DD) ? How many DEPLOYMENT DESCRIPTORS are available ?

Def of DEPLOYMENT DESCRIPTOR (DD): Deployment descriptor is an XML file that describes how to deploy a module or
application by specifying configuration and container options.

(or)

----> deployment descriptor describes how a web application or enterprise application should be deployed. It directs a deployment tool
to deploy a module or application with specific container options, security settings and describes specific configuration requirements

---> For example, an EJB deployment descriptor passes information to an EJB container about how to manage and control an
enterprise bean

----> This file is web.xml


-----> This is an xml file. It tells to the server about the application.

-----> Each web application contain one deployment descriptor


(OR)

----> Deployment descriptors are used specify the information that is used to deploy the application on the server.

(OR)

-----> Deployment Descriptor is an xml file which contains information about runtime properties of the specific application.

A) ----> A DEPLOYMENT DESCRIPTOR (DD) refers to configuration file that is deployed to some Container/Engine

-----> DEPLOYMENT DESCRIPTOR (DD) describes how web application or Enterprise Application should be deployed.

------> It directs deployment tool to deploy module application with Container options

------> Security Settings and Configuration requirements.

------> XML is used as Syntax for DEPLOYMENT DESCRIPTOR.

Two Types of DEPLOYMENT DESCRIPTOR .

1) WEBAPPLICATION DEPLOYMENTDESCRIPTOR

2) PORTLET DEPLOYMENTDESCRIPTOR

1) web.xml : The
web.xml defines the Web application being deployed. This section will detail the
required elements of the web.xml when deploying a portlet application.

2) Portlet.xml
(OR)

----> Deployment Descriptor describes how a web application or enterprise application to be deployed.
----> Pre-complie JSP should be done default.
There are 3 types.

1) JAR file= Collection of class files


2) WAR file =Collection of Class, JSP,XML files.
3) EAR file=Collection of JAR,WAR and EJBs.

Você também pode gostar