You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by hc...@apache.org on 2007/09/20 22:25:28 UTC
svn commit: r577905 [6/7] - in /geronimo/site/trunk/docs/xml: ./ ns/ ns/j2ee/
Added: geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-tomcat-2.0.xsd
URL: http://svn.apache.org/viewvc/geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-tomcat-2.0.xsd?rev=577905&view=auto
==============================================================================
--- geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-tomcat-2.0.xsd (added)
+++ geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-tomcat-2.0.xsd Thu Sep 20 13:25:18 2007
@@ -0,0 +1,254 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+
+<xs:schema xmlns:tomcat="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0"
+ targetNamespace="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0"
+ xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.2"
+ xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0"
+ xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2"
+ xmlns:ee="http://java.sun.com/xml/ns/persistence"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+ attributeFormDefault="unqualified" version="1.1">
+
+ <xs:annotation>
+ <xs:documentation>
+ This is an XML Schema Definition for Geronimo tomcat web application
+ deployment plan. In case the web application deployment plan is
+ provided internally in the web archive, it should be named
+ META-INF/geronimo-web.xml. In case the web application deployment
+ plan is provided externally, the deployment descriptor can be named
+ anything and provided to the deploy tool. Alternatively, it can be
+ included in the EAR and referenced by an alt-dd element of the EAR
+ deployment plan. All the web application deployment plan must
+ specify the top level element as web-app with namespace specified as
+ xmlns="http://geronimo.apache.org/xml/ns/j2ee/tomcat-1.2". The
+ default location for this document is
+ http://geronimo.apache.org/schemas-1.2/geronimo-tomcat-2.0.xsd
+ </xs:documentation>
+ </xs:annotation>
+
+ <xs:import namespace="http://geronimo.apache.org/xml/ns/naming-1.2"
+ schemaLocation="geronimo-naming-1.2.xsd">
+ <xs:annotation>
+ <xs:documentation>
+ Import partial schema containing common naming elements, the
+ imported plan declares elements like ejb-ref, ejb-local-ref,
+ service-ref, resource-ref, and resource-env-ref required by this
+ plan schema.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:import>
+ <xs:import
+ namespace="http://geronimo.apache.org/xml/ns/j2ee/application-2.0"
+ schemaLocation="geronimo-application-2.0.xsd">
+ <xs:annotation>
+ <xs:documentation>
+ Import Geronimo application deployment plans. The imported plan
+ includes abstract complex types security required by this plan
+ schema.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:import>
+ <xs:import namespace="http://geronimo.apache.org/xml/ns/deployment-1.2"
+ schemaLocation="geronimo-module-1.2.xsd">
+ <xs:annotation>
+ <xs:documentation>
+ Import Geronimo Services deployment plans. The imported plan
+ includes complex types like moduleType, environmentType,
+ dependenciesType, etc. required by this plan schema.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:import>
+
+ <xs:import namespace="http://java.sun.com/xml/ns/persistence" schemaLocation="persistence-1.0.xsd"/>
+
+ <xs:element name="web-app" type="tomcat:web-appType">
+ <xs:annotation>
+ <xs:documentation>
+ The web-app element is the root of the deployment descriptor for
+ a Geronimo tomcat web application. Note that the sub-elements of
+ this element should be as in the given order in a sequence.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:complexType name="web-appType">
+ <xs:sequence>
+ <xs:element ref="sys:environment" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ Reference to environment element defined in imported
+ "geronimo-module-1.2.xsd"
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="context-root" type="xs:string" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ This is the first part of the URL used to access the web
+ application. For example context-root of "Sample-App"
+ will have URL of http://host:port/Sample-App" and a
+ context-root of "/" would make this the default web
+ application to the server.
+
+ If the web application is packaged as an EAR that can
+ use application context in the "application.xml". This
+ element is necessary unless you want context root to
+ default to the WAR name.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <!--<xs:element name="context-priority-classloader" type="xs:boolean" minOccurs="0"/>-->
+
+ <xs:element ref="naming:web-container" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ Reference to web-container element defined in imported
+ "geronimo-naming-1.2.xsd"
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="host" type="xs:string" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ The host element maps the web application to this
+ particular host name.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="cross-context" type="tomcat:emptyType"
+ minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ The cross-context is an indicative element to specify
+ that the web application will use dispatch request to
+ other applications and this cross context should be
+ enabled.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="disable-cookies" type="tomcat:emptyType"
+ minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ The presence of disable-cookies element indicates the
+ cookies will not be used by tomcat web application and
+ should be disabled.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="valve-chain" type="xs:string" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ The valve-chain provides the list of first element
+ tomcat valves chain for this web application.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="listener-chain" type="xs:string" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ The listener-chain provides the list of first element
+ tomcat lifecycle listener chain for this web application.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="tomcat-realm" type="xs:string" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ The tomcat-realm provides the tomcat security realm used
+ by this web application.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="manager" type="xs:string" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ The manager provides the clustering implementation used
+ by this web application.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="cluster" type="xs:string" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ The cluster provides the name of cluster this web
+ application belongs to.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:group ref="naming:jndiEnvironmentRefsGroup">
+ <xs:annotation>
+ <xs:documentation>
+ Reference to jndiEnvironmentRefsGroup group defined in
+ imported "geronimo-naming-1.2.xsd"
+ </xs:documentation>
+ </xs:annotation>
+ </xs:group>
+ <xs:element ref="naming:message-destination" minOccurs="0"
+ maxOccurs="unbounded">
+ <xs:annotation>
+ <xs:documentation>
+ Reference to message-destination element defined in
+ imported "geronimo-naming-1.2.xsd"
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:sequence minOccurs="0">
+ <xs:element name="security-realm-name" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>
+ The security-realm-name element provides the name of
+ security realm that will be used by JAAS
+ authentication. The name should match the your
+ security realm GBean.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element ref="app:security" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ Reference to security element defined in imported
+ "geronimo-security-2.0.xsd"
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ </xs:sequence>
+
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="sys:service" minOccurs="0" maxOccurs="unbounded">
+ <xs:annotation>
+ <xs:documentation>
+ Reference to abstract service element defined in imported
+ "geronimo-module-1.2.xsd"
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element ref="ee:persistence"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="emptyType" />
+
+</xs:schema>
Added: geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-tomcat-config-1.0.xsd
URL: http://svn.apache.org/viewvc/geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-tomcat-config-1.0.xsd?rev=577905&view=auto
==============================================================================
--- geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-tomcat-config-1.0.xsd (added)
+++ geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-tomcat-config-1.0.xsd Thu Sep 20 13:25:18 2007
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+
+<xs:schema
+ xmlns:tomcat="http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0"
+ targetNamespace="http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+ attributeFormDefault="unqualified" version="1.0">
+
+ <xs:annotation>
+ <xs:documentation>
+ This is an XML Schema Definition for Geronimo tomcat specific
+ configuration. It is a used as a sub part of the web application
+ deployment plan. The elements defined in this plan are included in
+ container-config element of web application plan. The top level
+ element included in container-config is tomcat with namespace
+ specified as
+ xmlns="http://geronimo.apache.org/xml/ns/j2ee/tomcat-config-1.0".
+ The default location for this document is
+ http://geronimo.apache.org/schemas-1.2/geronimo-tomcat-config-1.0.xsd
+ </xs:documentation>
+ </xs:annotation>
+ <xs:element name="tomcat" type="tomcat:tomcat-configType">
+ <xs:annotation>
+ <xs:documentation>
+ The tomcat element is the root of the deployment descriptor for
+ a tomcat specific configuration in web application. Note that
+ the sub-elements of this element should be as in the given order
+ in a sequence.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:complexType name="tomcat-configType">
+ <xs:sequence>
+ <xs:element name="host" type="xs:string" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ The host element maps the web application to this
+ particular host name.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="cross-context" type="tomcat:emptyType"
+ minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ The cross-context is an indicative element to specify
+ that the web application will use dispatch request to
+ other applications and this cross context should be
+ enabled.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="disable-cookies" type="tomcat:emptyType"
+ minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ The presence of disable-cookies element indicates the
+ cookies will not be used by tomcat web application and
+ should be disabled.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="valve-chain" type="xs:string" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ The valve-chain provides the list of first element
+ tomcat valves chain for this web application.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="listener-chain" type="xs:string" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ The listener-chain provides the list of first element
+ tomcat lifecycle listener chain for this web application.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="tomcat-realm" type="xs:string" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ The tomcat-realm provides the tomcat security realm used
+ by this web application.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="manager" type="xs:string" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ The manager provides the clustering implementation used
+ by this web application.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="cluster" type="xs:string" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ The cluster provides the name of cluster this web
+ application belongs to.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="emptyType" />
+
+</xs:schema>
Added: geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-web-1.0.xsd
URL: http://svn.apache.org/viewvc/geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-web-1.0.xsd?rev=577905&view=auto
==============================================================================
--- geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-web-1.0.xsd (added)
+++ geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-web-1.0.xsd Thu Sep 20 13:25:18 2007
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright 2004-2005 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.
+-->
+
+<xs:schema
+ xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-1.0"
+ targetNamespace="http://geronimo.apache.org/xml/ns/j2ee/web-1.0"
+ xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.0"
+ xmlns:security="http://geronimo.apache.org/xml/ns/security-1.1"
+ xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.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="geronimo-naming-1.0.xsd"/>
+ <xs:import namespace="http://geronimo.apache.org/xml/ns/security-1.1" schemaLocation="geronimo-security-1.1.xsd"/>
+ <xs:import namespace="http://geronimo.apache.org/xml/ns/deployment-1.0" schemaLocation="geronimo-config-1.0.xsd"/>
+
+ <xs:element name="web-app" type="web:web-appType"/>
+
+
+ <xs:complexType name="web-appType">
+ <xs:sequence>
+<!-- <xs:element ref="sys:parent" minOccurs="0" maxOccurs="unbounded"/>-->
+<!-- <xs:element ref="sys:dependency" minOccurs="0" maxOccurs="unbounded"/>-->
+<!-- <xs:element ref="sys:hidden-classes" minOccurs="0" maxOccurs="unbounded"/>-->
+<!-- <xs:element ref="sys:non-overridable-classes" minOccurs="0" maxOccurs="unbounded"/>-->
+ <xs:group ref="sys:classloader-infoGroup"/>
+
+ <xs:element name="context-root" type="xs:string" minOccurs="0"/>
+ <xs:element name="context-priority-classloader" type="xs:boolean" minOccurs="0"/>
+ <xs:element name="container-config" type="web:container-configType" minOccurs="0"/>
+
+ <xs:group ref="naming:jndiEnvironmentRefsGroup"/>
+ <xs:element ref="naming:message-destination" minOccurs="0" maxOccurs="unbounded"/>
+
+ <xs:sequence minOccurs="0">
+ <xs:element name="security-realm-name" type="xs:string"/>
+ <xs:element ref="security:security" minOccurs="0"/>
+ </xs:sequence>
+
+ <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>
+
+ <xs:complexType name="container-configType">
+ <xs:sequence>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+
+</xs:schema>
Added: geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-web-1.1.xsd
URL: http://svn.apache.org/viewvc/geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-web-1.1.xsd?rev=577905&view=auto
==============================================================================
--- geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-web-1.1.xsd (added)
+++ geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-web-1.1.xsd Thu Sep 20 13:25:18 2007
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright 2004-2005 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.
+-->
+
+<xs:schema
+ xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-1.1"
+ targetNamespace="http://geronimo.apache.org/xml/ns/j2ee/web-1.1"
+ xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1"
+ xmlns:security="http://geronimo.apache.org/xml/ns/security-1.1"
+ xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1"
+ 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.1" schemaLocation="geronimo-naming-1.1.xsd"/>
+ <xs:import namespace="http://geronimo.apache.org/xml/ns/security-1.1" schemaLocation="geronimo-security-1.1.xsd"/>
+ <xs:import namespace="http://geronimo.apache.org/xml/ns/deployment-1.1" schemaLocation="geronimo-module-1.1.xsd"/>
+
+ <xs:element name="web-app" type="web:web-appType"/>
+
+
+ <xs:complexType name="web-appType">
+ <xs:sequence>
+ <xs:element ref="sys:environment" minOccurs="0"/>
+
+ <xs:element name="context-root" type="xs:string" minOccurs="0"/>
+ <!--<xs:element name="context-priority-classloader" type="xs:boolean" minOccurs="0"/>-->
+ <xs:element ref="naming:web-container" minOccurs="0"/>
+ <xs:element name="container-config" type="web:container-configType" minOccurs="0"/>
+
+ <xs:group ref="naming:jndiEnvironmentRefsGroup"/>
+ <xs:element ref="naming:message-destination" minOccurs="0" maxOccurs="unbounded"/>
+
+ <xs:sequence minOccurs="0">
+ <xs:element name="security-realm-name" type="xs:string"/>
+ <xs:element ref="security:security" minOccurs="0"/>
+ </xs:sequence>
+
+ <xs:element ref="sys:gbean" minOccurs="0" maxOccurs="unbounded"/>
+
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="container-configType">
+ <xs:sequence>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+
+</xs:schema>
Added: geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-web-2.0.xsd
URL: http://svn.apache.org/viewvc/geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-web-2.0.xsd?rev=577905&view=auto
==============================================================================
--- geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-web-2.0.xsd (added)
+++ geronimo/site/trunk/docs/xml/ns/j2ee/geronimo-web-2.0.xsd Thu Sep 20 13:25:18 2007
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+
+<!-- $Rev: 573465 $ $Date: 2007-09-07 01:41:34 -0400 (Fri, 07 Sep 2007) $ -->
+
+<xs:schema
+ xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0"
+ targetNamespace="http://geronimo.apache.org/xml/ns/j2ee/web-2.0"
+ xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.2"
+ xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0"
+ xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2"
+ xmlns:ee="http://java.sun.com/xml/ns/persistence"
+ 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.2" schemaLocation="geronimo-naming-1.2.xsd"/>
+ <xs:import namespace="http://geronimo.apache.org/xml/ns/j2ee/application-2.0" schemaLocation="geronimo-application-2.0.xsd"/>
+ <xs:import namespace="http://geronimo.apache.org/xml/ns/deployment-1.2" schemaLocation="geronimo-module-1.2.xsd"/>
+ <xs:import namespace="http://java.sun.com/xml/ns/persistence" schemaLocation="persistence-1.0.xsd"/>
+
+ <xs:element name="web-app" type="web:web-appType"/>
+ <xs:annotation>
+ <xs:documentation>
+ The web-app element is the root of the deployment descriptor for a Geronimo web
+ application. Note that the sub-elements of this element should be as in the given order because it is
+ defined as a sequence.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:annotation>
+ <xs:documentation>
+ This group keeps the usage of the contained JNDI environment
+ reference elements consistent across J2EE deployment descriptors.
+ </xs:documentation>
+ </xs:annotation>
+
+ <xs:complexType name="web-appType">
+ <xs:sequence>
+ <xs:element ref="sys:environment" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ This is the first part of the URL used to access the web application.
+ For example context-root of "Sample-App" will have URL of
+ http://host:port/Sample-App" and a context-root of "/" would be make this the default web application to the server.
+
+ If the web application is packaged as an EAR that can use application context
+ in the "application.xml". This element is necessary unless you want context root to default to the WAR
+ name.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:element name="context-root" type="xs:string" minOccurs="0"/>
+ <!--<xs:element name="context-priority-classloader" type="xs:boolean" minOccurs="0"/>-->
+ <xs:element ref="naming:web-container" minOccurs="0"/>
+ <xs:element name="container-config" type="web:container-configType" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>
+ Geronimo supports both Jetty and Tomcat web containers. This element is
+ for a web application needs to take container specific settings. It can hold either a Tomcat element or a Jetty element or both.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:group ref="naming:jndiEnvironmentRefsGroup"/>
+ <xs:element ref="naming:message-destination" minOccurs="0" maxOccurs="unbounded"/>
+
+ <xs:sequence minOccurs="0">
+ <xs:element name="security-realm-name" type="xs:string"/>
+ <xs:element ref="app:security" minOccurs="0"/>
+ </xs:sequence>
+
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="sys:service" minOccurs="0" maxOccurs="unbounded">
+ <xs:annotation>
+ <xs:documentation>
+ Reference to abstract service element defined in imported
+ "geronimo-module-1.2.xsd"
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element ref="ee:persistence"/>
+ </xs:choice>
+
+
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="container-configType">
+ <xs:sequence>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+
+</xs:schema>
Added: geronimo/site/trunk/docs/xml/ns/j2ee/local-attribute.xsd
URL: http://svn.apache.org/viewvc/geronimo/site/trunk/docs/xml/ns/j2ee/local-attribute.xsd?rev=577905&view=auto
==============================================================================
--- geronimo/site/trunk/docs/xml/ns/j2ee/local-attribute.xsd (added)
+++ geronimo/site/trunk/docs/xml/ns/j2ee/local-attribute.xsd Thu Sep 20 13:25:18 2007
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright 2004-2005 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
+ targetNamespace="http://geronimo.apache.org/xml/ns/attributes"
+ xmlns:atts="http://geronimo.apache.org/xml/ns/attributes"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified"
+ version="1.0">
+
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The definition of the XML format for storing manageable attribute values.
+ Should look like this:
+
+ <attributes>
+ <configuration name="org/apache/geronimo/Server">
+ <gbean name="SomeJettyConnector">
+ <attribute name="host">0.0.0.0</attribute>
+ <attribute name="port">8080</attribute>
+ </gbean>
+ </configuration>
+ </attributes>
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+
+ <!--
+ temporary (I hope) individual elements while xmlbeans group handling is straightened out
+ -->
+
+ <xsd:element name="attributes" type="atts:attributesType"/>
+
+ <xsd:complexType name="attributesType">
+ <xsd:sequence>
+ <xsd:element name="configuration" type="atts:configurationType" minOccurs="0" maxOccurs="unbounded" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="configurationType">
+ <xsd:sequence>
+ <xsd:element name="gbean" type="atts:gbeanType" minOccurs="0" maxOccurs="unbounded" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required"/>
+ <xsd:attribute name="load" type="xsd:boolean" use="optional" default="true"/>
+ </xsd:complexType>
+
+ <xsd:complexType name="gbeanType">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Note that the name attribute for a gbean element may hold
+ either the full GBeanName, or only the value for the
+ "name=" portion of the GBeanName. If there are multiple
+ GBeans in the configuration with manageable attributes and
+ the same "name=" portion of the GBeanName, then all must be
+ listed and all must be listed with a full GBeanName.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="attribute" type="atts:attributeType"/>
+ <xsd:element name="reference" type="atts:referenceType"/>
+ </xsd:choice>
+ <xsd:attribute name="name" type="xsd:string" use="required"/>
+ <xsd:attribute name="gbeanInfo" type="xsd:string" use="optional"/>
+ <xsd:attribute name="load" type="xsd:boolean" use="optional" default="true"/>
+ </xsd:complexType>
+
+ <xsd:complexType name="attributeType">
+ <xsd:simpleContent>
+ <xsd:extension base="xsd:string">
+ <xsd:attribute name="name" use="required"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <xsd:complexType name="referenceType">
+ <xsd:sequence>
+ <xsd:element name="pattern" minOccurs="1" maxOccurs="unbounded">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="gbean-name" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string"/>
+ </xsd:complexType>
+ </xsd:schema>
\ No newline at end of file
Added: geronimo/site/trunk/docs/xml/ns/j2ee/local-attributes-1.1.xsd
URL: http://svn.apache.org/viewvc/geronimo/site/trunk/docs/xml/ns/j2ee/local-attributes-1.1.xsd?rev=577905&view=auto
==============================================================================
--- geronimo/site/trunk/docs/xml/ns/j2ee/local-attributes-1.1.xsd (added)
+++ geronimo/site/trunk/docs/xml/ns/j2ee/local-attributes-1.1.xsd Thu Sep 20 13:25:18 2007
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright 2004-2005 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
+ targetNamespace="http://geronimo.apache.org/xml/ns/attributes-1.1"
+ xmlns:atts="http://geronimo.apache.org/xml/ns/attributes-1.1"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified"
+ >
+
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The definition of the XML format for storing manageable attribute values.
+ Should look like this:
+
+ <attributes>
+ <configuration name="org/apache/geronimo/Server">
+ <gbean name="SomeJettyConnector">
+ <attribute name="host">0.0.0.0</attribute>
+ <attribute name="port">8080</attribute>
+ </gbean>
+ </configuration>
+ </attributes>
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+
+ <!-- Main element for the manageable attribute store configuration -->
+ <xsd:element name="attributes" type="atts:attributesType"/>
+
+ <!-- Element used by the plugin system to list individual GBeans -->
+ <xsd:element name="gbean" type="atts:gbeanType" />
+
+ <xsd:complexType name="attributesType">
+ <xsd:choice>
+ <xsd:element name="module" type="atts:configurationType" minOccurs="0" maxOccurs="unbounded" />
+
+ <!-- The config.xml file in 1.0 use configuration instead of module -->
+ <xsd:element name="configuration" type="atts:configurationType" minOccurs="0" maxOccurs="unbounded" />
+ </xsd:choice>
+ </xsd:complexType>
+
+ <xsd:complexType name="configurationType">
+ <xsd:sequence>
+ <xsd:element name="gbean" type="atts:gbeanType" minOccurs="0" maxOccurs="unbounded" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required"/>
+ <xsd:attribute name="load" type="xsd:boolean" use="optional" default="true"/>
+ </xsd:complexType>
+
+ <xsd:complexType name="gbeanType">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Note that the name attribute for a gbean element may hold
+ either the full GBeanName, or only the value for the
+ "name=" portion of the GBeanName. If there are multiple
+ GBeans in the configuration with manageable attributes and
+ the same "name=" portion of the GBeanName, then all must be
+ listed and all must be listed with a full GBeanName.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="attribute" type="atts:attributeType"/>
+ <xsd:element name="reference" type="atts:referenceType"/>
+ </xsd:choice>
+ <xsd:attribute name="name" type="xsd:string" use="required"/>
+ <xsd:attribute name="gbeanInfo" type="xsd:string" use="optional"/>
+ <xsd:attribute name="load" type="xsd:boolean" use="optional" default="true"/>
+ </xsd:complexType>
+
+ <xsd:complexType name="attributeType">
+ <xsd:simpleContent>
+ <xsd:extension base="xsd:string">
+ <xsd:attribute name="name" use="required"/>
+ <xsd:attribute name="null" use="optional"/>
+ <xsd:attribute name="value" use="optional"/>
+ </xsd:extension>
+ </xsd:simpleContent>
+ </xsd:complexType>
+
+ <xsd:complexType name="referenceType">
+ <xsd:sequence>
+ <xsd:element name="pattern" minOccurs="0" maxOccurs="unbounded">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="groupId" type="xsd:string" minOccurs="0"/>
+ <xsd:element name="artifactId" type="xsd:string" minOccurs="0"/>
+ <xsd:element name="version" type="xsd:string" minOccurs="0"/>
+ <xsd:element name="type" type="xsd:string" minOccurs="0"/>
+ <xsd:element name="module" type="xsd:string" minOccurs="0"/>
+ <xsd:element name="name" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string"/>
+ </xsd:complexType>
+ </xsd:schema>
\ No newline at end of file
Added: geronimo/site/trunk/docs/xml/ns/j2ee/openejb-jar-2.0.xsd
URL: http://svn.apache.org/viewvc/geronimo/site/trunk/docs/xml/ns/j2ee/openejb-jar-2.0.xsd?rev=577905&view=auto
==============================================================================
--- geronimo/site/trunk/docs/xml/ns/j2ee/openejb-jar-2.0.xsd (added)
+++ geronimo/site/trunk/docs/xml/ns/j2ee/openejb-jar-2.0.xsd Thu Sep 20 13:25:18 2007
@@ -0,0 +1,388 @@
+<?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 openejb-group@openejb.sf.net.
+
+ 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.1"
+ 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="geronimo-naming-1.0.xsd"/>
+ <xs:import namespace="http://geronimo.apache.org/xml/ns/security-1.1" schemaLocation="geronimo-security-1.1.xsd"/>
+ <xs:import namespace="http://geronimo.apache.org/xml/ns/deployment-1.0" schemaLocation="geronimo-config-1.0.xsd"/>
+ <xs:import namespace="http://www.openejb.org/xml/ns/pkgen-2.0" schemaLocation="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:parent" minOccurs="0" maxOccurs="unbounded"/>-->
+<!-- <xs:element ref="sys:dependency" minOccurs="0" maxOccurs="unbounded"/>-->
+<!-- <xs:element ref="sys:hidden-classes" minOccurs="0" maxOccurs="unbounded"/>-->
+<!-- <xs:element ref="sys:non-overridable-classes" minOccurs="0" maxOccurs="unbounded"/>-->
+ <xs:group ref="sys:classloader-infoGroup"/>
+
+ <!-- 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:attribute name="inverseClassloading" type="xs:boolean" 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:element name="cache" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="isolation-level">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="read-uncommitted"/>
+ <xs:enumeration value="read-committed"/>
+ <xs:enumeration value="repeatable-read"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:element>
+ <xs:element name="size" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <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>
Added: geronimo/site/trunk/docs/xml/ns/j2ee/openejb-jar-2.1.xsd
URL: http://svn.apache.org/viewvc/geronimo/site/trunk/docs/xml/ns/j2ee/openejb-jar-2.1.xsd?rev=577905&view=auto
==============================================================================
--- geronimo/site/trunk/docs/xml/ns/j2ee/openejb-jar-2.1.xsd (added)
+++ geronimo/site/trunk/docs/xml/ns/j2ee/openejb-jar-2.1.xsd Thu Sep 20 13:25:18 2007
@@ -0,0 +1,381 @@
+<?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 openejb-group@openejb.sf.net.
+
+ 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.1"
+ targetNamespace="http://www.openejb.org/xml/ns/openejb-jar-2.1"
+ xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1"
+ xmlns:security="http://geronimo.apache.org/xml/ns/security-1.1"
+ xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1"
+ 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.1" schemaLocation="geronimo-naming-1.1.xsd"/>
+ <xs:import namespace="http://geronimo.apache.org/xml/ns/security-1.1" schemaLocation="geronimo-security-1.1.xsd"/>
+ <xs:import namespace="http://geronimo.apache.org/xml/ns/deployment-1.1" schemaLocation="geronimo-module-1.1.xsd"/>
+ <xs:import namespace="http://www.openejb.org/xml/ns/pkgen-2.0" schemaLocation="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:environment" minOccurs="0"/>
+
+ <!-- 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: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-link" type="xs:string"/>
+ <xs:element name="tss" type="naming:patternType"/>
+ </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="static-sql" type="openejb:emptyType" minOccurs="0"/>
+ <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:element name="cache" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="isolation-level">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="read-uncommitted"/>
+ <xs:enumeration value="read-committed"/>
+ <xs:enumeration value="repeatable-read"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:element>
+ <xs:element name="size" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <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>
Added: geronimo/site/trunk/docs/xml/ns/j2ee/openejb-pkgen-2.0.xsd
URL: http://svn.apache.org/viewvc/geronimo/site/trunk/docs/xml/ns/j2ee/openejb-pkgen-2.0.xsd?rev=577905&view=auto
==============================================================================
--- geronimo/site/trunk/docs/xml/ns/j2ee/openejb-pkgen-2.0.xsd (added)
+++ geronimo/site/trunk/docs/xml/ns/j2ee/openejb-pkgen-2.0.xsd Thu Sep 20 13:25:18 2007
@@ -0,0 +1,163 @@
+<?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 openejb-group@openejb.sf.net.
+
+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: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>