<!--
/*
 * JOnAS: Java(TM) Open Application Server
 * Copyright (C) 1999 Bull S.A.
 * Contact: jonas-team@objectweb.org
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 * USA
 *
 * Initial developer(s): Florent BENOIT & Ludovic BERT.
 *
 *
*/
-->

<!--
This is XML DTD for jonas webapp deployment descriptor information.
All JOnAS web application deployment descriptors must include a DOCTYPE
of the following form:

<!DOCTYPE jonas-web-app PUBLIC "-//ObjectWeb//DTD JOnAS Web App 3.1//EN"
                               "http://www.objectweb.org/jonas/dtds/jonas-web-app_3_1.dtd">
-->



<!--
 The jonas-web-app element is the root element of a JOnAS WEB specific 
 deployment descriptor. 
-->
<!ELEMENT jonas-web-app (jonas-resource-env*, jonas-resource*, jonas-ejb-ref*, host?, context-root?, java2-delegation-model?)>

<!--
 The jonas-resource element declares the JOnAS specific information for 
 an external resource referenced by a web component. It consists of :
  - the name of the resource reference specified in the standard WEB 
  deployment descriptor,
  - the JNDI name of the resource.

  Used in: jonas-web-app
-->
<!ELEMENT jonas-resource (res-ref-name, jndi-name)>

<!--
 The res-ref-name element specifies the name of a resource factory reference. 
 
 Used in: jonas-resource
-->
<!ELEMENT res-ref-name (#PCDATA)>

<!--
 The jndi-name element specifies a JNDI name.

 Used in: jonas-resource-env, jonas-resource, jonas-ejb-ref
-->
<!ELEMENT jndi-name (#PCDATA)>

<!--
 The jonas-resource-env element declares the JOnAS specific information for 
 an external resource environment referenced by a WEB component.
 It consists of
    - the name of the resource environment reference specified in the 
    standard WEB deployment descriptor,
    - the JNDI name of the resource environment.

 Used in: jonas-web-app
-->
<!ELEMENT jonas-resource-env (resource-env-ref-name, jndi-name)>

<!--
 The resource-env-ref-name element specifies the name of a resource 
 environment reference.

 Used in: jonas-resource-env 
-->
<!ELEMENT resource-env-ref-name (#PCDATA)>

<!--
 The jonas-ejb-ref element declares the JOnAS specific information for a 
 reference to an enterprise bean's home.
 It consists of
   - the name of the ejb reference specified in the standard WEB deployment
     descriptor,
   - the JNDI name of the ejb.

 Used in: jonas-web-app
-->
<!ELEMENT jonas-ejb-ref (ejb-ref-name, jndi-name)>

<!--
 The ejb-ref-name element specifies the name of an ejb reference.

 Used in: jonas-ejb-ref
-->
<!ELEMENT ejb-ref-name (#PCDATA)>

<!--
 The host element specifies the name of host used for deploy the web application.

 Used in: jonas-web-app
-->
<!ELEMENT host (#PCDATA)>

<!--
 The context-root element specifies the context root for the web application.

 Used in: jonas-web-app
-->
<!ELEMENT context-root (#PCDATA)>

<!--
 The java2-delegation-model element specifies :
 if true  : the context uses a classloader using the Java 2 delegation model.
 if false : the class loader looks inside the web application first,
            before asking parent class loaders.

 If this element is not specified, the Java2 delegation model is used (true).

 Used in: jonas-web-app
-->
<!ELEMENT java2-delegation-model (#PCDATA)>
