djencks     2005/09/28 18:14:25

  Modified:    modules/openejb-builder/src/schema geronimo-config.xsd
                        geronimo-naming.xsd geronimo-security.xsd
                        xmlconfig.xml
  Added:       modules/openejb-builder/src/schema corba-css-config-2.0.xsd
                        corba-tss-config-2.0.xsd openejb-jar-2.0.xsd
                        openejb-pkgen-2.0.xsd
  Removed:     modules/openejb-builder/src/schema corba-css-config_1_0.xsd
                        corba-tss-config_1_0.xsd openejb-jar.xsd
                        openejb-pkgen.xsd
  Log:

  GERONIMO-1027, GERONIMO-957.  Version our schemas, and provide specific jetty 
and tomcat schemas.  Schema processing cleanup.  A couple other minor fixes
  
  Revision  Changes    Path
  1.3       +5 -5      
openejb/modules/openejb-builder/src/schema/geronimo-config.xsd
  
  Index: geronimo-config.xsd
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/openejb-builder/src/schema/geronimo-config.xsd,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- geronimo-config.xsd       2 Mar 2005 03:38:45 -0000       1.2
  +++ geronimo-config.xsd       28 Sep 2005 22:14:25 -0000      1.3
  @@ -6,9 +6,9 @@
       Licensed under the Apache License, Version 2.0 (the "License");
       you may not use this file except in compliance with the License.
       You may obtain a copy of the License at
  -  
  +
          http://www.apache.org/licenses/LICENSE-2.0
  -  
  +
       Unless required by applicable law or agreed to in writing, software
       distributed under the License is distributed on an "AS IS" BASIS,
       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  @@ -17,8 +17,8 @@
   -->
   
   <xs:schema
  -    targetNamespace="http://geronimo.apache.org/xml/ns/deployment";
  -    xmlns:sys="http://geronimo.apache.org/xml/ns/deployment";
  +    targetNamespace="http://geronimo.apache.org/xml/ns/deployment-1.0";
  +    xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.0";
       xmlns:xs="http://www.w3.org/2001/XMLSchema";
       elementFormDefault="qualified"
       attributeFormDefault="unqualified"
  @@ -28,7 +28,7 @@
               Schema for Geronimo Services deployment plans.
               Instance documents should begin with the element:
   
  -            &gt;gbeans 
xmlns="http://geronimo.apache.org/xml/ns/deployment"&lt;
  +            &gt;gbeans 
xmlns="http://geronimo.apache.org/xml/ns/deployment-1.0"&lt;
           </xs:documentation>
       </xs:annotation>
   
  
  
  
  1.3       +4 -4      
openejb/modules/openejb-builder/src/schema/geronimo-naming.xsd
  
  Index: geronimo-naming.xsd
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/openejb-builder/src/schema/geronimo-naming.xsd,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- geronimo-naming.xsd       8 Mar 2005 04:08:31 -0000       1.2
  +++ geronimo-naming.xsd       28 Sep 2005 22:14:25 -0000      1.3
  @@ -6,9 +6,9 @@
       Licensed under the Apache License, Version 2.0 (the "License");
       you may not use this file except in compliance with the License.
       You may obtain a copy of the License at
  -  
  +
          http://www.apache.org/licenses/LICENSE-2.0
  -  
  +
       Unless required by applicable law or agreed to in writing, software
       distributed under the License is distributed on an "AS IS" BASIS,
       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  @@ -17,8 +17,8 @@
   -->
   
   <xsd:schema
  -    targetNamespace="http://geronimo.apache.org/xml/ns/naming";
  -    xmlns:gernaming="http://geronimo.apache.org/xml/ns/naming";
  +    targetNamespace="http://geronimo.apache.org/xml/ns/naming-1.0";
  +    xmlns:gernaming="http://geronimo.apache.org/xml/ns/naming-1.0";
       xmlns:xsd="http://www.w3.org/2001/XMLSchema";
       elementFormDefault="qualified"
       attributeFormDefault="unqualified"
  
  
  
  1.3       +5 -5      
openejb/modules/openejb-builder/src/schema/geronimo-security.xsd
  
  Index: geronimo-security.xsd
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/openejb-builder/src/schema/geronimo-security.xsd,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- geronimo-security.xsd     10 Nov 2004 19:45:45 -0000      1.2
  +++ geronimo-security.xsd     28 Sep 2005 22:14:25 -0000      1.3
  @@ -6,21 +6,21 @@
       Licensed under the Apache License, Version 2.0 (the "License");
       you may not use this file except in compliance with the License.
       You may obtain a copy of the License at
  -  
  +
          http://www.apache.org/licenses/LICENSE-2.0
  -  
  +
       Unless required by applicable law or agreed to in writing, software
       distributed under the License is distributed on an "AS IS" BASIS,
       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       See the License for the specific language governing permissions and
       limitations under the License.
   -->
  -  
  +
   <xsd:schema
       xmlns:xsd="http://www.w3.org/2001/XMLSchema";
       xmlns:j2ee="http://java.sun.com/xml/ns/j2ee";
  -    xmlns:geronimo="http://geronimo.apache.org/xml/ns/security";
  -    targetNamespace="http://geronimo.apache.org/xml/ns/security";
  +    xmlns:geronimo="http://geronimo.apache.org/xml/ns/security-1.0";
  +    targetNamespace="http://geronimo.apache.org/xml/ns/security-1.0";
       elementFormDefault="qualified"
       attributeFormDefault="unqualified"
       version="1.0">
  
  
  
  1.5       +4 -4      openejb/modules/openejb-builder/src/schema/xmlconfig.xml
  
  Index: xmlconfig.xml
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/openejb-builder/src/schema/xmlconfig.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- xmlconfig.xml     13 Jul 2005 05:27:10 -0000      1.4
  +++ xmlconfig.xml     28 Sep 2005 22:14:25 -0000      1.5
  @@ -1,22 +1,22 @@
   <xb:config xmlns:xb="http://www.bea.com/2002/09/xbean/config";
       >
   
  -    <xb:namespace uri="http://www.openejb.org/xml/ns/openejb-jar";>
  +    <xb:namespace uri="http://www.openejb.org/xml/ns/openejb-jar-2.0";>
           <xb:package>org.openejb.xbeans.ejbjar</xb:package>
           <xb:prefix>Openejb</xb:prefix>
       </xb:namespace>
   
  -    <xb:namespace uri="http://www.openejb.org/xml/ns/pkgen";>
  +    <xb:namespace uri="http://www.openejb.org/xml/ns/pkgen-2.0";>
           <xb:package>org.openejb.xbeans.pkgen</xb:package>
           <xb:prefix>Ejb</xb:prefix>
       </xb:namespace>
   
  -    <xb:namespace uri="http://www.openejb.org/xml/ns/corba-tss-config_1_0";>
  +    <xb:namespace uri="http://www.openejb.org/xml/ns/corba-tss-config-2.0";>
           <xb:package>org.openejb.xbeans.csiv2.tss</xb:package>
           <xb:prefix>TSS</xb:prefix>
       </xb:namespace>
   
  -    <xb:namespace uri="http://www.openejb.org/xml/ns/corba-css-config_1_0";>
  +    <xb:namespace uri="http://www.openejb.org/xml/ns/corba-css-config-2.0";>
           <xb:package>org.openejb.xbeans.csiv2.css</xb:package>
           <xb:prefix>CSS</xb:prefix>
       </xb:namespace>
  
  
  
  1.1                  
openejb/modules/openejb-builder/src/schema/corba-css-config-2.0.xsd
  
  Index: corba-css-config-2.0.xsd
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- ================================================================
   Redistribution and use of this software and associated documentation
   ("Software"), with or without modification, are permitted provided
   that the following conditions are met:
  
   1. Redistributions of source code must retain copyright
      statements and notices.  Redistributions must also contain a
      copy of this document.
  
   2. Redistributions in binary form must reproduce this list of
      conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
  
   3. The name "OpenEJB" must not be used to endorse or promote
      products derived from this Software without prior written
      permission of The OpenEJB Group.  For written permission,
      please contact [EMAIL PROTECTED]
  
   4. Products derived from this Software may not be called "OpenEJB"
      nor may "OpenEJB" appear in their names without prior written
      permission of The OpenEJB Group. OpenEJB is a registered
      trademark of The OpenEJB Group.
  
   5. Due credit should be given to the OpenEJB Project
      (http://openejb.org/).
  
   THIS SOFTWARE IS PROVIDED BY THE OPENEJB GROUP AND CONTRIBUTORS
   ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
   NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
   THE OPENEJB GROUP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
   OF THE POSSIBILITY OF SUCH DAMAGE.
  
   ====================================================================
  
   This software consists of voluntary contributions made by many
   individuals on behalf of the OpenEJB Project.  For more information
   please see <http://openejb.org/>.
  
   ================================================================ -->
  
  <xsd:schema
      xmlns:css="http://www.openejb.org/xml/ns/corba-css-config-2.0";
      targetNamespace="http://www.openejb.org/xml/ns/corba-css-config-2.0";
      xmlns:xsd="http://www.w3.org/2001/XMLSchema";
      xmlns:j2ee="http://java.sun.com/xml/ns/j2ee";
      elementFormDefault="qualified"
      attributeFormDefault="unqualified"
      version="1.0">
  
      <xsd:import namespace="http://www.w3.org/XML/1998/namespace"; 
schemaLocation="schema/xml.xsd"/>
  
      <xsd:element name="css" type="css:cssType"/>
  
      <xsd:complexType name="cssType">
          <xsd:sequence>
              <xsd:element name="description" type="css:descriptionType" 
minOccurs="0" maxOccurs="unbounded"/>
              <xsd:element name="compoundSecMechTypeList" minOccurs="0">
                  <xsd:complexType>
                      <xsd:sequence>
                          <xsd:element name="compoundSecMech" 
type="css:compoundSecMechType" maxOccurs="unbounded"/>
                      </xsd:sequence>
                      <xsd:attribute name="stateful" type="xsd:boolean" 
use="optional" default="false"/>
                  </xsd:complexType>
              </xsd:element>
          </xsd:sequence>
      </xsd:complexType>
  
      <xsd:complexType name="descriptionType">
          <xsd:simpleContent>
              <xsd:extension base="xsd:string">
                  <xsd:attribute ref="xml:lang"/>
              </xsd:extension>
          </xsd:simpleContent>
      </xsd:complexType>
  
      <xsd:complexType name="compoundSecMechType">
          <xsd:sequence>
              <xsd:element name="description" type="css:descriptionType" 
minOccurs="0" maxOccurs="unbounded"/>
              <xsd:group ref="css:transportMechGroup" minOccurs="0"/>
              <xsd:group ref="css:asMechGroup" minOccurs="0"/>
              <xsd:element name="sasMech" type="css:sasMechType" minOccurs="0"/>
          </xsd:sequence>
      </xsd:complexType>
  
      <xsd:group name="transportMechGroup">
          <xsd:choice>
              <xsd:element name="SSL" type="css:SSLType"/>
              <xsd:element name="SECIOP" type="css:SECIOPType"/>
          </xsd:choice>
      </xsd:group>
  
      <xsd:complexType name="SSLType">
          <xsd:sequence>
              <xsd:element name="description" type="css:descriptionType" 
minOccurs="0" maxOccurs="unbounded"/>
              <xsd:element name="supports" type="css:associationOptionList"/>
              <xsd:element name="requires" type="css:associationOptionList"/>
              <xsd:group ref="css:trustGroup" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="handshakeTimeout" type="xsd:short"/>
      </xsd:complexType>
  
      <xsd:complexType name="SECIOPType">
          <xsd:sequence>
              <xsd:element name="description" type="css:descriptionType" 
minOccurs="0" maxOccurs="unbounded"/>
              <xsd:element name="supports" type="css:associationOptionList"/>
              <xsd:element name="requires" type="css:associationOptionList"/>
              <xsd:group ref="css:trustGroup"/>
          </xsd:sequence>
          <xsd:attribute name="mechOID" type="xsd:string"/>
          <xsd:attribute name="targetName" type="xsd:string"/>
      </xsd:complexType>
  
      <xsd:group name="trustGroup">
          <xsd:choice>
              <xsd:element name="trustEveryone" type="css:trustEveryoneType"/>
              <xsd:element name="trustNoone" type="css:trustNooneType"/>
              <xsd:element name="trustList">
                  <xsd:complexType>
                      <xsd:sequence>
                          <xsd:element name="entity" type="css:entityType" 
maxOccurs="unbounded"/>
                      </xsd:sequence>
                  </xsd:complexType>
              </xsd:element>
          </xsd:choice>
      </xsd:group>
  
      <xsd:complexType name="trustEveryoneType">
          <xsd:complexContent>
              <xsd:restriction base="xsd:anyType"/>
          </xsd:complexContent>
      </xsd:complexType>
  
      <xsd:complexType name="trustNooneType">
          <xsd:complexContent>
              <xsd:restriction base="xsd:anyType"/>
          </xsd:complexContent>
      </xsd:complexType>
  
      <xsd:complexType name="entityType">
          <xsd:complexContent>
              <xsd:restriction base="xsd:anyType">
                  <xsd:attribute name="hostname" type="xsd:string" 
use="optional"/>
                  <xsd:attribute name="distinguishedName" type="xsd:string" 
use="optional"/>
              </xsd:restriction>
          </xsd:complexContent>
      </xsd:complexType>
  
      <xsd:group name="asMechGroup">
          <xsd:choice>
              <xsd:element name="GSSUPStatic" type="css:GSSUPStaticType"/>
              <xsd:element name="GSSUPDynamic" type="css:GSSUPDynamicType"/>
          </xsd:choice>
      </xsd:group>
  
      <xsd:complexType name="GSSUPStaticType">
          <xsd:complexContent>
              <xsd:restriction base="xsd:anyType">
                  <xsd:attribute name="username" type="xsd:string"/>
                  <xsd:attribute name="password" type="xsd:string"/>
                  <xsd:attribute name="domain" type="xsd:string"/>
              </xsd:restriction>
          </xsd:complexContent>
      </xsd:complexType>
  
      <xsd:complexType name="GSSUPDynamicType">
          <xsd:complexContent>
              <xsd:restriction base="xsd:anyType">
                  <xsd:attribute name="domain" type="xsd:string" 
use="optional"/>
              </xsd:restriction>
          </xsd:complexContent>
      </xsd:complexType>
  
      <xsd:complexType name="sasMechType">
          <xsd:sequence>
              <xsd:element name="description" type="css:descriptionType" 
minOccurs="0" maxOccurs="unbounded"/>
              <xsd:group ref="css:ittGroup"/>
          </xsd:sequence>
      </xsd:complexType>
  
      <xsd:group name="ittGroup">
          <xsd:choice>
              <xsd:element name="ITTAbsent" type="css:ITTAbsentType"/>
              <xsd:element name="ITTAnonymous" type="css:ITTAnonymousType"/>
              <xsd:element name="ITTPrincipalNameStatic" 
type="css:ITTPrincipalNameStaticType"/>
              <xsd:element name="ITTPrincipalNameDynamic" 
type="css:ITTPrincipalNameDynamicType"/>
          </xsd:choice>
      </xsd:group>
  
      <xsd:complexType name="ITTAbsentType">
          <xsd:complexContent>
              <xsd:restriction base="xsd:anyType"/>
          </xsd:complexContent>
      </xsd:complexType>
  
      <xsd:complexType name="ITTAnonymousType">
          <xsd:complexContent>
              <xsd:restriction base="xsd:anyType"/>
          </xsd:complexContent>
      </xsd:complexType>
  
      <xsd:complexType name="ITTPrincipalNameStaticType">
          <xsd:complexContent>
              <xsd:restriction base="xsd:anyType">
                  <xsd:attribute name="name" type="xsd:string"/>
                  <xsd:attribute name="oid" type="xsd:string" use="optional"/>
              </xsd:restriction>
          </xsd:complexContent>
      </xsd:complexType>
  
      <xsd:complexType name="ITTPrincipalNameDynamicType">
          <xsd:complexContent>
              <xsd:restriction base="xsd:anyType">
                  <xsd:attribute name="domain" type="xsd:string"/>
                  <xsd:attribute name="oid" type="xsd:string" use="optional"/>
              </xsd:restriction>
          </xsd:complexContent>
      </xsd:complexType>
  
      <xsd:simpleType name="associationOption">
          <xsd:restriction base="xsd:token">
              <xsd:enumeration value="NoProtection"/>
              <xsd:enumeration value="Integrity"/>
              <xsd:enumeration value="Confidentiality"/>
              <xsd:enumeration value="DetectReplay"/>
              <xsd:enumeration value="DetectMisordering"/>
              <xsd:enumeration value="EstablishTrustInTarget"/>
              <xsd:enumeration value="EstablishTrustInClient"/>
              <xsd:enumeration value="NoDelegation"/>
              <xsd:enumeration value="SimpleDelegation"/>
              <xsd:enumeration value="CompositeDelegation"/>
              <xsd:enumeration value="IdentityAssertion"/>
              <xsd:enumeration value="DelegationByClient"/>
          </xsd:restriction>
      </xsd:simpleType>
  
      <xsd:simpleType name="associationOptionList">
          <xsd:list itemType="css:associationOption"/>
      </xsd:simpleType>
  
  </xsd:schema>
  
  
  
  1.1                  
openejb/modules/openejb-builder/src/schema/corba-tss-config-2.0.xsd
  
  Index: corba-tss-config-2.0.xsd
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- ================================================================
   Redistribution and use of this software and associated documentation
   ("Software"), with or without modification, are permitted provided
   that the following conditions are met:
  
   1. Redistributions of source code must retain copyright
      statements and notices.  Redistributions must also contain a
      copy of this document.
  
   2. Redistributions in binary form must reproduce this list of
      conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
  
   3. The name "OpenEJB" must not be used to endorse or promote
      products derived from this Software without prior written
      permission of The OpenEJB Group.  For written permission,
      please contact [EMAIL PROTECTED]
  
   4. Products derived from this Software may not be called "OpenEJB"
      nor may "OpenEJB" appear in their names without prior written
      permission of The OpenEJB Group. OpenEJB is a registered
      trademark of The OpenEJB Group.
  
   5. Due credit should be given to the OpenEJB Project
      (http://openejb.org/).
  
   THIS SOFTWARE IS PROVIDED BY THE OPENEJB GROUP AND CONTRIBUTORS
   ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
   NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
   THE OPENEJB GROUP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
   OF THE POSSIBILITY OF SUCH DAMAGE.
  
   ====================================================================
  
   This software consists of voluntary contributions made by many
   individuals on behalf of the OpenEJB Project.  For more information
   please see <http://openejb.org/>.
  
   ================================================================ -->
  
  <xsd:schema
      xmlns:tss="http://www.openejb.org/xml/ns/corba-tss-config-2.0";
      targetNamespace="http://www.openejb.org/xml/ns/corba-tss-config-2.0";
      xmlns:xsd="http://www.w3.org/2001/XMLSchema";
      xmlns:j2ee="http://java.sun.com/xml/ns/j2ee";
      xmlns:security="http://geronimo.apache.org/xml/ns/security-1.0";
      elementFormDefault="qualified"
      attributeFormDefault="unqualified"
      version="1.0">
  
      <xsd:import namespace="http://www.w3.org/XML/1998/namespace"; 
schemaLocation="schema/xml.xsd"/>
  
      <xsd:element name="tss" type="tss:tssType"/>
  
      <xsd:complexType name="tssType">
          <xsd:sequence>
              <xsd:element name="description" type="tss:descriptionType" 
minOccurs="0" maxOccurs="unbounded"/>
              <xsd:element name="default-principal" 
type="security:default-principalType" minOccurs="0"/>
              <xsd:group ref="tss:transportMechGroup" minOccurs="0"/>
              <xsd:element name="compoundSecMechTypeList" minOccurs="0">
                  <xsd:complexType>
                      <xsd:sequence>
                          <xsd:element name="compoundSecMech" 
type="tss:compoundSecMechType" maxOccurs="unbounded"/>
                      </xsd:sequence>
                      <xsd:attribute name="stateful" type="xsd:boolean" 
use="optional" default="false"/>
                  </xsd:complexType>
              </xsd:element>
          </xsd:sequence>
          <xsd:attribute name="inherit" type="xsd:boolean" use="optional" 
default="false"/>
      </xsd:complexType>
  
      <xsd:complexType name="descriptionType">
          <xsd:simpleContent>
              <xsd:extension base="xsd:string">
                  <xsd:attribute ref="xml:lang"/>
              </xsd:extension>
          </xsd:simpleContent>
      </xsd:complexType>
  
      <xsd:group name="transportMechGroup">
          <xsd:choice>
              <xsd:element name="SSL" type="tss:SSLType"/>
              <xsd:element name="SECIOP" type="tss:SECIOPType"/>
          </xsd:choice>
      </xsd:group>
  
      <xsd:complexType name="SSLType">
          <xsd:sequence>
              <xsd:element name="description" type="tss:descriptionType" 
minOccurs="0" maxOccurs="unbounded"/>
              <xsd:element name="supports" type="tss:associationOptionList"/>
              <xsd:element name="requires" type="tss:associationOptionList"/>
              <xsd:group ref="tss:trustGroup" minOccurs="0"/>
          </xsd:sequence>
          <xsd:attribute name="port" type="xsd:short" use="required"/>
          <xsd:attribute name="hostname" type="xsd:string" use="required"/>
          <xsd:attribute name="handshakeTimeout" type="xsd:short"/>
      </xsd:complexType>
  
      <xsd:complexType name="SECIOPType">
          <xsd:sequence>
              <xsd:element name="description" type="tss:descriptionType" 
minOccurs="0" maxOccurs="unbounded"/>
              <xsd:element name="supports" type="tss:associationOptionList"/>
              <xsd:element name="requires" type="tss:associationOptionList"/>
              <xsd:element name="transportAddress" 
type="tss:transportAddressType" maxOccurs="unbounded"/>
              <xsd:group ref="tss:trustGroup"/>
          </xsd:sequence>
          <xsd:attribute name="mechOID" type="xsd:string"/>
          <xsd:attribute name="targetName" type="xsd:string"/>
      </xsd:complexType>
  
      <xsd:group name="trustGroup">
          <xsd:choice>
              <xsd:element name="trustEveryone" type="tss:trustEveryoneType"/>
              <xsd:element name="trustNoone" type="tss:trustNooneType"/>
              <xsd:element name="trustList">
                  <xsd:complexType>
                      <xsd:sequence>
                          <xsd:element name="entity" type="tss:entityType" 
maxOccurs="unbounded"/>
                      </xsd:sequence>
                  </xsd:complexType>
              </xsd:element>
          </xsd:choice>
      </xsd:group>
  
      <xsd:complexType name="trustEveryoneType">
          <xsd:complexContent>
              <xsd:restriction base="xsd:anyType"/>
          </xsd:complexContent>
      </xsd:complexType>
  
      <xsd:complexType name="trustNooneType">
          <xsd:complexContent>
              <xsd:restriction base="xsd:anyType"/>
          </xsd:complexContent>
      </xsd:complexType>
  
      <xsd:complexType name="entityType">
          <xsd:complexContent>
              <xsd:restriction base="xsd:anyType">
                  <xsd:attribute name="hostname" type="xsd:string" 
use="optional"/>
                  <xsd:attribute name="distinguishedName" type="xsd:string" 
use="optional"/>
              </xsd:restriction>
          </xsd:complexContent>
      </xsd:complexType>
  
      <xsd:complexType name="transportAddressType">
          <xsd:simpleContent>
              <xsd:extension base="xsd:string">
                  <xsd:attribute name="port" type="xsd:short"/>
                  <xsd:attribute name="hostname" type="xsd:string"/>
              </xsd:extension>
          </xsd:simpleContent>
      </xsd:complexType>
  
      <xsd:complexType name="compoundSecMechType">
          <xsd:sequence>
              <xsd:element name="description" type="tss:descriptionType" 
minOccurs="0" maxOccurs="unbounded"/>
              <xsd:group ref="tss:asMechGroup" minOccurs="0"/>
              <xsd:element name="sasMech" type="tss:sasMechType" minOccurs="0"/>
          </xsd:sequence>
      </xsd:complexType>
  
      <xsd:group name="asMechGroup">
          <xsd:choice>
              <xsd:element name="GSSUP" type="tss:GSSUPType"/>
          </xsd:choice>
      </xsd:group>
  
      <xsd:complexType name="GSSUPType">
          <xsd:sequence>
              <xsd:element name="description" type="tss:descriptionType" 
minOccurs="0" maxOccurs="unbounded"/>
          </xsd:sequence>
          <xsd:attribute name="targetName" type="xsd:string"/>
          <xsd:attribute name="required" type="xsd:boolean" use="optional" 
default="false"/>
      </xsd:complexType>
  
      <xsd:complexType name="sasMechType">
          <xsd:sequence>
              <xsd:element name="description" type="tss:descriptionType" 
minOccurs="0" maxOccurs="unbounded"/>
              <xsd:element name="serviceConfigurationList" minOccurs="0">
                  <xsd:complexType>
                      <xsd:sequence>
                          <xsd:group ref="tss:serviceConfigurationGroup" 
maxOccurs="unbounded"/>
                      </xsd:sequence>
                      <xsd:attribute name="required" type="xsd:boolean" 
use="optional" default="false"/>
                  </xsd:complexType>
              </xsd:element>
              <xsd:element name="identityTokenTypes" 
type="tss:identityTokenTypeList"/>
          </xsd:sequence>
      </xsd:complexType>
  
      <xsd:group name="serviceConfigurationGroup">
          <xsd:choice>
              <xsd:element name="generalName" type="tss:generalNameType"/>
              <xsd:element name="gssExportedName" 
type="tss:gssExportedNameType"/>
          </xsd:choice>
      </xsd:group>
  
      <xsd:complexType name="generalNameType">
          <xsd:complexContent>
              <xsd:restriction base="xsd:anyType">
                  <xsd:attribute name="privilegeAuthority" type="xsd:string"/>
              </xsd:restriction>
          </xsd:complexContent>
      </xsd:complexType>
  
      <xsd:complexType name="gssExportedNameType">
          <xsd:complexContent>
              <xsd:restriction base="xsd:anyType">
                  <xsd:attribute name="OID" type="xsd:string"/>
                  <xsd:attribute name="privilegeAuthority" type="xsd:string"/>
              </xsd:restriction>
          </xsd:complexContent>
      </xsd:complexType>
  
      <xsd:simpleType name="associationOption">
          <xsd:restriction base="xsd:token">
              <xsd:enumeration value="NoProtection"/>
              <xsd:enumeration value="Integrity"/>
              <xsd:enumeration value="Confidentiality"/>
              <xsd:enumeration value="DetectReplay"/>
              <xsd:enumeration value="DetectMisordering"/>
              <xsd:enumeration value="EstablishTrustInTarget"/>
              <xsd:enumeration value="EstablishTrustInClient"/>
              <xsd:enumeration value="NoDelegation"/>
              <xsd:enumeration value="SimpleDelegation"/>
              <xsd:enumeration value="CompositeDelegation"/>
              <xsd:enumeration value="IdentityAssertion"/>
              <xsd:enumeration value="DelegationByClient"/>
          </xsd:restriction>
      </xsd:simpleType>
  
      <xsd:simpleType name="associationOptionList">
          <xsd:list itemType="tss:associationOption"/>
      </xsd:simpleType>
  
      <xsd:complexType name="identityTokenTypeList">
          <xsd:sequence>
              <xsd:choice>
                  <xsd:element name="ITTAbsent" type="tss:ITTAbsentType"/>
                  <xsd:group ref="tss:ittGroup"/>
              </xsd:choice>
          </xsd:sequence>
      </xsd:complexType>
  
      <xsd:group name="ittGroup">
          <xsd:sequence>
              <xsd:element name="ITTAnonymous" type="tss:ITTAnonymousType" 
minOccurs="0"/>
              <xsd:element name="ITTPrincipalNameGSSUP" 
type="tss:ITTPrincipalNameGSSUPType" minOccurs="0"/>
              <xsd:element name="ITTDistinguishedName" 
type="tss:ITTDistinguishedNameType" minOccurs="0"/>
              <xsd:element name="ITTX509CertChain" 
type="tss:ITTX509CertChainType" minOccurs="0"/>
          </xsd:sequence>
      </xsd:group>
  
      <xsd:complexType name="ITTAbsentType">
          <xsd:complexContent>
              <xsd:restriction base="xsd:anyType"/>
          </xsd:complexContent>
      </xsd:complexType>
  
      <xsd:complexType name="ITTAnonymousType">
          <xsd:complexContent>
              <xsd:restriction base="xsd:anyType"/>
          </xsd:complexContent>
      </xsd:complexType>
  
      <xsd:complexType name="ITTPrincipalNameGSSUPType">
          <!--        <xsd:complexContent>-->
          <!--            <xsd:restriction base="xsd:anyType"/>-->
          <!--        </xsd:complexContent>-->
          <xsd:sequence/>
          <xsd:attribute name="realm-name"  type="xsd:string"/>
      </xsd:complexType>
  
      <xsd:complexType name="ITTDistinguishedNameType">
  <!--        <xsd:complexContent>-->
  <!--            <xsd:restriction base="xsd:anyType"/>-->
  <!--        </xsd:complexContent>-->
          <xsd:sequence/>
          <xsd:attribute name="realm-name"  type="xsd:string"/>
      </xsd:complexType>
  
      <xsd:complexType name="ITTX509CertChainType">
  <!--        <xsd:complexContent>-->
  <!--            <xsd:restriction base="xsd:anyType"/>-->
  <!--        </xsd:complexContent>-->
          <xsd:sequence/>
          <xsd:attribute name="realm-name"  type="xsd:string"/>
      </xsd:complexType>
  
  </xsd:schema>
  
  
  
  1.1                  
openejb/modules/openejb-builder/src/schema/openejb-jar-2.0.xsd
  
  Index: openejb-jar-2.0.xsd
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- ================================================================
   Redistribution and use of this software and associated documentation
   ("Software"), with or without modification, are permitted provided
   that the following conditions are met:
  
   1. Redistributions of source code must retain copyright
      statements and notices.  Redistributions must also contain a
      copy of this document.
  
   2. Redistributions in binary form must reproduce this list of
      conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
  
   3. The name "OpenEJB" must not be used to endorse or promote
      products derived from this Software without prior written
      permission of The OpenEJB Group.  For written permission,
      please contact [EMAIL PROTECTED]
  
   4. Products derived from this Software may not be called "OpenEJB"
      nor may "OpenEJB" appear in their names without prior written
      permission of The OpenEJB Group. OpenEJB is a registered
      trademark of The OpenEJB Group.
  
   5. Due credit should be given to the OpenEJB Project
      (http://openejb.org/).
  
   THIS SOFTWARE IS PROVIDED BY THE OPENEJB GROUP AND CONTRIBUTORS
   ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
   NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
   THE OPENEJB GROUP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
   OF THE POSSIBILITY OF SUCH DAMAGE.
  
   ====================================================================
  
   This software consists of voluntary contributions made by many
   individuals on behalf of the OpenEJB Project.  For more information
   please see <http://openejb.org/>.
  
   ================================================================ -->
  
  <xs:schema
      xmlns:openejb="http://www.openejb.org/xml/ns/openejb-jar-2.0";
      targetNamespace="http://www.openejb.org/xml/ns/openejb-jar-2.0";
      xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.0";
      xmlns:security="http://geronimo.apache.org/xml/ns/security-1.0";
      xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.0";
      xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0";
      xmlns:xs="http://www.w3.org/2001/XMLSchema";
      elementFormDefault="qualified"
      attributeFormDefault="unqualified"
      version="1.0">
  
      <xs:import namespace="http://geronimo.apache.org/xml/ns/naming-1.0"; 
schemaLocation="schema/geronimo-naming-1.0.xsd"/>
      <xs:import namespace="http://geronimo.apache.org/xml/ns/security-1.0"; 
schemaLocation="schema/geronimo-security-1.0.xsd"/>
      <xs:import namespace="http://geronimo.apache.org/xml/ns/deployment-1.0"; 
schemaLocation="schema/geronimo-config-1.0.xsd"/>
      <xs:import namespace="http://www.openejb.org/xml/ns/pkgen-2.0"; 
schemaLocation="schema/openejb-pkgen-2.0.xsd"/>
  
      <xs:element name="openejb-jar" type="openejb:openejb-jarType"/>
  
      <xs:complexType name="emptyType"/>
  
      <xs:complexType name="openejb-jarType">
          <xs:sequence>
              <xs:element ref="sys:import" minOccurs="0" maxOccurs="unbounded"/>
              <xs:element ref="sys:dependency" minOccurs="0" 
maxOccurs="unbounded"/>
              <!-- use a ref to put this element in the naming namespace rather 
than openejb namespace-->
              <xs:element ref="naming:cmp-connection-factory" minOccurs="0"/>
              <xs:element name="ejb-ql-compiler-factory" type="xs:string" 
minOccurs="0"/>
              <xs:element name="db-syntax-factory" type="xs:string" 
minOccurs="0"/>
              <xs:element name="enforce-foreign-key-constraints" 
type="openejb:emptyType" minOccurs="0"/>
  
              <xs:element name="enterprise-beans">
                  <xs:complexType>
                      <xs:choice minOccurs="0" maxOccurs="unbounded">
                          <xs:element name="session" 
type="openejb:session-beanType"/>
                          <xs:element name="entity" 
type="openejb:entity-beanType"/>
                          <xs:element name="message-driven" 
type="openejb:message-driven-beanType"/>
                      </xs:choice>
                  </xs:complexType>
              </xs:element>
  
              <xs:element name="relationships" type="openejb:relationshipsType" 
minOccurs="0">
                  <xs:unique name="relationship-name-uniqueness">
                      <xs:selector xpath="openejb:ejb-relation"/>
                      <xs:field xpath="openejb:ejb-relation-name"/>
                  </xs:unique>
              </xs:element>
  
              <xs:element ref="naming:message-destination" minOccurs="0" 
maxOccurs="unbounded"/>
  
              <xs:element ref="security:security" minOccurs="0"/>
              <xs:element ref="sys:gbean" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>
          <xs:attribute name="configId" type="xs:string" use="required"/>
          <xs:attribute name="parentId" type="xs:string" use="optional"/>
      </xs:complexType>
  
      <!-- session bean section-->
      <xs:complexType name="session-beanType">
          <xs:sequence>
              <xs:element name="ejb-name" type="xs:string"/>
              <xs:element name="jndi-name" type="xs:string" minOccurs="0" 
maxOccurs="unbounded"/>
              <xs:element name="local-jndi-name" type="xs:string" minOccurs="0" 
maxOccurs="unbounded"/>
              <xs:group ref="openejb:tssGroup" minOccurs="0"/>
  
              <xs:group ref="naming:jndiEnvironmentRefsGroup"/>
              <xs:element name="web-service-address" type="xs:string" 
minOccurs="0"/>
              <xs:element name="web-service-virtual-host" type="xs:string" 
minOccurs="0" maxOccurs="unbounded" />
              <xs:element name="web-service-security" 
type="openejb:web-service-securityType" minOccurs="0"/>
          </xs:sequence>
          <xs:attribute name="id" type="xs:ID"/>
      </xs:complexType>
  
      <xs:group name="tssGroup">
          <xs:sequence>
              <xs:choice>
                  <xs:element name="tss-target-name" type="xs:string"/>
                  <xs:element name="tss-link" type="xs:string"/>
                  <xs:element name="tss" type="openejb:tssType"/>
              </xs:choice>
          </xs:sequence>
      </xs:group>
  
      <xs:complexType name="tssType">
          <xs:sequence>
              <!-- this is object name group from geronimo-naming.xsd -->
              <xs:element name="domain" type="xs:string" minOccurs="0"/>
              <xs:element name="server" type="xs:string" minOccurs="0"/>
              <xs:element name="application" type="xs:string" minOccurs="0"/>
              <xs:element name="module" type="xs:string" minOccurs="0"/>
              <!--            <xs:element name="type" type="xs:string" 
minOccurs="0"/>-->
              <xs:element name="name" type="xs:string"/>
          </xs:sequence>
      </xs:complexType>
  
      <xs:complexType name="web-service-securityType">
          <xs:sequence>
              <xs:element name="security-realm-name" type="xs:string"/>
              <xs:element name="realm-name" type="xs:string" minOccurs="0"/>
              <xs:element name="transport-guarantee" 
type="openejb:transport-guaranteeType"/>
              <xs:element name="auth-method" type="openejb:auth-methodType"/>
          </xs:sequence>
      </xs:complexType>
  
      <xs:simpleType name="transport-guaranteeType">
          <xs:restriction base="xs:string">
              <xs:enumeration value="NONE"/>
              <xs:enumeration value="INTEGRAL"/>
              <xs:enumeration value="CONFIDENTIAL"/>
          </xs:restriction>
      </xs:simpleType>
  
      <xs:simpleType name="auth-methodType">
          <xs:restriction base="xs:string">
              <xs:enumeration value="BASIC"/>
              <xs:enumeration value="DIGEST"/>
              <xs:enumeration value="CLIENT-CERT"/>
              <xs:enumeration value="NONE"/>
          </xs:restriction>
      </xs:simpleType>
  
      <!--entity bean section -->
      <xs:complexType name="entity-beanType">
          <xs:sequence>
              <xs:element name="ejb-name" type="xs:string"/>
              <xs:element name="jndi-name" type="xs:string" minOccurs="0" 
maxOccurs="unbounded"/>
              <xs:element name="local-jndi-name" type="xs:string" minOccurs="0" 
maxOccurs="unbounded"/>
              <xs:group ref="openejb:tssGroup" minOccurs="0"/>
  
              <xs:sequence minOccurs="0">
                  <xs:element name="table-name" type="xs:string"/>
                  <xs:element name="cmp-field-mapping" maxOccurs="unbounded">
                      <xs:complexType>
                          <xs:sequence>
                              <xs:element name="cmp-field-name" 
type="xs:string"/>
                              <xs:element name="cmp-field-class" 
type="xs:string" minOccurs="0"/>
                              <xs:element name="table-column" type="xs:string"/>
                              <xs:element name="sql-type" type="xs:string" 
minOccurs="0"/>
                              <xs:element name="type-converter" 
type="xs:string" minOccurs="0"/>
                          </xs:sequence>
                      </xs:complexType>
                  </xs:element>
                  <xs:element name="primkey-field" type="xs:string" 
minOccurs="0"/>
                  <xs:element ref="pkgen:key-generator" minOccurs="0" />
                  <xs:element name="prefetch-group" minOccurs="0">
                      <xs:complexType>
                          <xs:sequence>
                              <xs:element name="group" minOccurs="0" 
maxOccurs="unbounded"
                                  type="openejb:groupType"/>
                              <xs:element name="entity-group-mapping" 
minOccurs="0"
                                  type="openejb:entity-group-mappingType"/>
                              <xs:element name="cmp-field-group-mapping" 
minOccurs="0" maxOccurs="unbounded"
                                  type="openejb:cmp-field-group-mappingType"/>
                              <xs:element name="cmr-field-group-mapping" 
minOccurs="0" maxOccurs="unbounded"
                                  type="openejb:cmr-field-group-mappingType"/>
                          </xs:sequence>
                      </xs:complexType>
                  </xs:element>
              </xs:sequence>
  
              <xs:group ref="naming:jndiEnvironmentRefsGroup"/>
  
              <xs:element name="query" type="openejb:queryType" minOccurs="0" 
maxOccurs="unbounded"/>
          </xs:sequence>
          <xs:attribute name="id" type="xs:ID"/>
      </xs:complexType>
  
      <xs:complexType name="groupType">
          <xs:sequence>
              <xs:element name="group-name" type="xs:string"/>
              <xs:element name="cmp-field-name" type="xs:string" minOccurs="0" 
maxOccurs="unbounded"/>
              <xs:element name="cmr-field" minOccurs="0" maxOccurs="unbounded">
                  <xs:complexType>
                      <xs:sequence>
                          <xs:element name="cmr-field-name" type="xs:string"/>
                          <xs:element name="group-name" type="xs:string" 
minOccurs="0"/>
                      </xs:sequence>
                  </xs:complexType>
              </xs:element>
          </xs:sequence>
      </xs:complexType>
  
      <xs:complexType name="entity-group-mappingType">
          <xs:sequence>
              <xs:element name="group-name" type="xs:string"/>
          </xs:sequence>
      </xs:complexType>
  
      <xs:complexType name="cmp-field-group-mappingType">
          <xs:sequence>
              <xs:element name="group-name" type="xs:string"/>
              <xs:element name="cmp-field-name" type="xs:string"/>
          </xs:sequence>
      </xs:complexType>
  
      <xs:complexType name="cmr-field-group-mappingType">
          <xs:sequence>
              <xs:element name="group-name" type="xs:string"/>
              <xs:element name="cmr-field-name" type="xs:string"/>
          </xs:sequence>
      </xs:complexType>
  
      <xs:complexType name="queryType">
          <xs:sequence>
              <xs:element name="query-method">
                  <xs:complexType>
                      <xs:sequence>
                          <xs:element name="method-name" type="xs:string"/>
                          <xs:element name="method-params">
                              <xs:complexType>
                                  <xs:sequence>
                                      <xs:element name="method-param" 
type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
                                  </xs:sequence>
                              </xs:complexType>
                          </xs:element>
                      </xs:sequence>
                  </xs:complexType>
              </xs:element>
              <xs:element name="result-type-mapping" minOccurs="0" 
type="xs:string"/>
              <xs:element name="ejb-ql" type="xs:string" minOccurs="0"/>
              <xs:element name="no-cache-flush" minOccurs="0"/>
              <xs:element name="group-name" type="xs:string" minOccurs="0"/>
          </xs:sequence>
      </xs:complexType>
  
      <xs:complexType name="relationshipsType">
          <xs:sequence>
              <xs:element name="ejb-relation" type="openejb:ejb-relationType" 
maxOccurs="unbounded">
                  <xs:unique name="role-name-uniqueness">
                      <xs:selector 
xpath=".//openejb:ejb-relationship-role-name"/>
                      <xs:field xpath="."/>
                  </xs:unique>
              </xs:element>
          </xs:sequence>
      </xs:complexType>
  
      <xs:complexType name="ejb-relationType">
          <xs:sequence>
              <xs:element name="ejb-relation-name" type="xs:string" 
minOccurs="0"/>
              <xs:element name="many-to-many-table-name" type="xs:string" 
minOccurs="0"/>
              <xs:element name="ejb-relationship-role" 
type="openejb:ejb-relationship-roleType" maxOccurs="2"/>
          </xs:sequence>
      </xs:complexType>
  
      <xs:complexType name="ejb-relationship-roleType">
          <xs:sequence>
              <xs:element name="ejb-relationship-role-name" type="xs:string" 
minOccurs="0"/>
              <xs:element name="relationship-role-source">
                  <xs:complexType>
                      <xs:sequence>
                          <xs:element name="ejb-name" type="xs:string"/>
                      </xs:sequence>
                  </xs:complexType>
              </xs:element>
              <xs:element name="cmr-field" minOccurs="0">
                  <xs:complexType>
                      <xs:sequence>
                          <xs:element name="cmr-field-name" type="xs:string"/>
                      </xs:sequence>
                  </xs:complexType>
              </xs:element>
              <xs:element name="foreign-key-column-on-source" minOccurs="0"/>
              <xs:element name="role-mapping">
                  <xs:complexType>
                      <xs:sequence>
                          <xs:element name="cmr-field-mapping" 
maxOccurs="unbounded">
                              <xs:complexType>
                                  <xs:sequence>
                                      <xs:element name="key-column" 
type="xs:string"/>
                                      <xs:element name="foreign-key-column" 
type="xs:string"/>
                                  </xs:sequence>
                              </xs:complexType>
                          </xs:element>
                      </xs:sequence>
                  </xs:complexType>
              </xs:element>
          </xs:sequence>
      </xs:complexType>
  
  
      <!--message driven bean section-->
      <xs:complexType name="message-driven-beanType">
          <xs:sequence>
              <xs:element name="ejb-name" type="xs:string"/>
              <xs:element ref="naming:resource-adapter"/>
              <xs:element name="activation-config"
                  type="openejb:activation-configType"
                  minOccurs="0"/>
  
              <xs:group ref="naming:jndiEnvironmentRefsGroup"/>
          </xs:sequence>
          <xs:attribute name="id" type="xs:ID"/>
      </xs:complexType>
  
      <xs:complexType name="activation-configType">
          <xs:sequence>
              <xs:element name="description"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="unbounded"/>
              <xs:element name="activation-config-property"
                  type="openejb:activation-config-propertyType"
                  maxOccurs="unbounded"/>
          </xs:sequence>
      </xs:complexType>
  
      <xs:complexType name="activation-config-propertyType">
          <xs:sequence>
              <xs:element name="activation-config-property-name"
                  type="xs:string">
              </xs:element>
              <xs:element name="activation-config-property-value"
                  type="xs:string">
              </xs:element>
          </xs:sequence>
      </xs:complexType>
  
  </xs:schema>
  
  
  
  1.1                  
openejb/modules/openejb-builder/src/schema/openejb-pkgen-2.0.xsd
  
  Index: openejb-pkgen-2.0.xsd
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!--
  
      Copyright 2004 The Apache Software Foundation
  
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at
  
         http://www.apache.org/licenses/LICENSE-2.0
  
      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
  -->
  
  <xsd:schema
      xmlns:xsd="http://www.w3.org/2001/XMLSchema";
      xmlns:j2ee="http://java.sun.com/xml/ns/j2ee";
      xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0";
      targetNamespace="http://www.openejb.org/xml/ns/pkgen-2.0";
      elementFormDefault="qualified"
      attributeFormDefault="unqualified"
      version="1.0">
  
      <xsd:element name="key-generator" type="pkgen:key-generatorType"/>
  
      <xsd:complexType name="key-generatorType">
          <xsd:annotation>
              <xsd:documentation>
                Primary Key generation element.
  
                If this is present, a key generator GBean will be created
                and configured to generate IDs for the surrounding object.
              </xsd:documentation>
          </xsd:annotation>
  
          <xsd:choice>
  <!-- Add this in as soon as TranQL has support.
       I assume it needs some kind of token PK generator that just tells
       it which column(s) in the table will be populated automatically
       by a database feature (such as MySQL AUTO_INCREMENT columns or a
       pre-insert trigger or whatever)
              <xsd:element name="database-generated" 
type="pkgen:database-generatedType" /> -->
              <xsd:element name="sequence-table" 
type="pkgen:sequence-tableType" />
              <xsd:element name="auto-increment-table" 
type="pkgen:auto-increment-tableType" />
              <xsd:element name="sql-generator" type="pkgen:sql-generatorType" 
/>
              <xsd:element name="custom-generator" 
type="pkgen:custom-generatorType" />
          </xsd:choice>
  
      </xsd:complexType>
  
      <xsd:complexType name="database-generatedType" >
          <xsd:annotation>
              <xsd:documentation>
                  Indicates that the database automatically populates a primary 
key
                  ID in the listed column(s).  Typically this is used for 
columns
                  with an AUTO_INCREMENT flag or the equivalent.  This only 
makes
                  sense if this key generator is used for an EJB or something 
else
                  with a corresponding database table (not if it's meant to 
generate
                  unique web session IDs or something like that -- see
                  auto-increment-tableType for that case).
              </xsd:documentation>
          </xsd:annotation>
          <xsd:sequence>
              <xsd:element name="identity-column" type="xsd:string"
                  maxOccurs="unbounded"/>
          </xsd:sequence>
      </xsd:complexType>
  
      <xsd:complexType name="sequence-tableType" >
          <xsd:annotation>
              <xsd:documentation>
                  Indicates that a separate table holds a list of table name/ID
                  pairs and the server should fetch the next ID from that table.
              </xsd:documentation>
          </xsd:annotation>
          <xsd:sequence>
              <xsd:element name="table-name" type="xsd:string"/>
              <xsd:element name="sequence-name" type="xsd:string"/>
              <xsd:element name="batch-size" type="xsd:int"/>
          </xsd:sequence>
      </xsd:complexType>
  
      <xsd:complexType name="sql-generatorType" >
          <xsd:annotation>
              <xsd:documentation>
                  Indicates that an arbitrary SQL statement should be used to
                  generate the next ID.
              </xsd:documentation>
          </xsd:annotation>
          <xsd:sequence>
              <xsd:element name="sql" type="xsd:string"/>
              <xsd:element name="return-type" type="xsd:string"/>
          </xsd:sequence>
      </xsd:complexType>
  
      <xsd:complexType name="auto-increment-tableType" >
          <xsd:annotation>
              <xsd:documentation>
                  Handles the case where an arbitrary SQL statement is executed,
                  and the JDBC driver returns a new automatically generated ID.
                  This should not be used when the destination table itself
                  generates the ID (see database-generatedType), but it could be
                  used for a web session ID or something where there is no
                  naturally matching database table (but you could create one
                  with an AUTO_INCREMENT key, specify an insert statement here,
                  and then capture the newly returned ID and use it as your
                  web session ID).
              </xsd:documentation>
          </xsd:annotation>
          <xsd:sequence>
              <xsd:element name="sql" type="xsd:string"/>
              <xsd:element name="return-type" type="xsd:string"/>
          </xsd:sequence>
      </xsd:complexType>
  
      <xsd:complexType name="custom-generatorType" >
          <xsd:annotation>
              <xsd:documentation>
                  Handles a user-provided generator.  You deploy any old 
generator
                  as a GBean, and then point to that GBean here.  The generator
                  should implement org.tranql.pkgenerator.PrimaryKeyGenerator.
              </xsd:documentation>
          </xsd:annotation>
          <xsd:sequence>
              <xsd:element name="generator-name" type="xsd:string"/>
              <xsd:element name="primary-key-class" type="xsd:string"/>
          </xsd:sequence>
      </xsd:complexType>
  </xsd:schema>
  
  
  

Reply via email to