25,26c25,26
<            targetNamespace="urn:jboss:domain:jca:4.0"
<            xmlns="urn:jboss:domain:jca:4.0"
---
>            targetNamespace="urn:jboss:domain:jca:1.1"
>            xmlns="urn:jboss:domain:jca:1.1"
30c30
<            version="2.0">
---
>            version="1.0">
60,71c60
<             <xs:element name="tracer"
<                         type="tracer-Type" minOccurs="0">
<                 <xs:annotation>
<                     <xs:documentation>
<                         Toggle Tracer for the
<                         deployment units. If it's not present it's
<                         considered false
<                     </xs:documentation>
<                 </xs:annotation>
<             </xs:element>
< 
<             <xs:element name="default-workmanager" type="defaultWorkmanagerType" minOccurs="1">
---
>             <xs:element name="default-workmanager" type="workmanagerType" minOccurs="1">
87,95d75
<             <xs:element name="distributed-workmanager" type="distributedWorkmanagerType" minOccurs="0"
<                         maxOccurs="unbounded">
<               <xs:annotation>
<                 <xs:documentation>
<                   A distributed work manager definition and its thread pools
<                 </xs:documentation>
<               </xs:annotation>
<             </xs:element>
< 
97,101c77,81
<               <xs:annotation>
<                 <xs:documentation>
<                   Definition of custom bootstrap contexts
<                 </xs:documentation>
<               </xs:annotation>
---
>                 <xs:annotation>
>                     <xs:documentation>
>                         Definition of custom bootstrap contexts
>                     </xs:documentation>
>                 </xs:annotation>
142,158d121
<     <xs:complexType name="tracer-Type">
<         <xs:attribute name="enabled" type="xs:boolean" use="required">
<             <xs:annotation>
<                 <xs:documentation>
<                     Specify whether tracer is enabled.
<                 </xs:documentation>
<             </xs:annotation>
<         </xs:attribute>
<     </xs:complexType>
< 
<     <xs:complexType name="defaultWorkmanagerType">
<         <xs:all>
<             <xs:element name="short-running-threads" type="thread-pool" maxOccurs="1" minOccurs="1"></xs:element>
<             <xs:element name="long-running-threads" type="thread-pool" maxOccurs="1" minOccurs="0"></xs:element>
<         </xs:all>
<     </xs:complexType>
< 
164c127
<         <xs:attribute name="name" type="xs:token" use="required">
---
>         <xs:attribute name="name" type="xs:token" use="optional">
167c130,131
<                    Specifies the name of the work manager.
---
>                    Specifies the name of the work manager. Note, that custom work managers need
>                    to have a name defined.
173,189d136
<   <xs:complexType name="distributedWorkmanagerType">
<           <xs:all>
<               <xs:element name="short-running-threads" type="thread-pool" maxOccurs="1" minOccurs="1"></xs:element>
<               <xs:element name="long-running-threads" type="thread-pool" maxOccurs="1" minOccurs="0"></xs:element>
<               <xs:element name="policy" type="policyType" maxOccurs="1" minOccurs="0" />
<               <xs:element name="selector" type="selectorType" maxOccurs="1" minOccurs="0" />
<           </xs:all>
<           <xs:attribute name="name" type="xs:token" use="required">
<               <xs:annotation>
<                   <xs:documentation>
<                      Specifies the name of the work manager. Note, that custom work managers need
<                      to have a name defined.
<                   </xs:documentation>
<               </xs:annotation>
<           </xs:attribute>
<       </xs:complexType>
< 
216d162
<         <xs:attribute name="ignore-unknown-connections" type="xs:boolean" use="optional"></xs:attribute>
236,305d181
< 
<     <xs:complexType name="policyType">
<         <xs:sequence>
<           <xs:element name="option" type="optionType" maxOccurs="unbounded" minOccurs="0"/>
<         </xs:sequence>
<         <xs:attribute name="name" use="required">
<                 <xs:annotation>
<                     <xs:documentation>
<                         When to distribute the work instance
<                         Supported policies
<                         - NEVER
<                         Never distribute the Work instance to another node.
<                         - ALWAYS
<                         Always distribute the Work instance to another node.
<                         - WATERMARK
<                         Distribute the Work instance to another node based on how many free worker threads the current
<                         node has available.
< 
<                         Default is WATERMARK with a watermark of 0
<                     </xs:documentation>
<                 </xs:annotation>
<                 <xs:simpleType>
<                     <xs:restriction base="xs:token">
<                         <xs:enumeration value="NEVER"/>
<                         <xs:enumeration value="ALWAYS"/>
<                         <xs:enumeration value="WATERMARK"/>
<                     </xs:restriction>
<                 </xs:simpleType>
<             </xs:attribute>
< 
< 
<       </xs:complexType>
<       <xs:complexType name="selectorType">
<           <xs:sequence>
<                   <xs:element name="option" type="optionType" maxOccurs="unbounded" minOccurs="0"/>
<           </xs:sequence>
<           <xs:attribute name="name" use="required">
<                 <xs:annotation>
<                     <xs:documentation>
<                         To which work manager instance should the Work instance be distributed to
<                         Supported selectors
<                         - FIRST_AVAILABLE
<                             Select the first available node in the list
<                         - PING_TIME
<                             Select the node with the lowest ping time
<                         - MAX_FREE_THREADS
<                             Select the node with highest number of free worker threads
< 
<                         Default is PING_TIME
<                     </xs:documentation>
<                 </xs:annotation>
<                 <xs:simpleType>
<                     <xs:restriction base="xs:token">
<                         <xs:enumeration value="FIRST_AVAILABLE"/>
<                         <xs:enumeration value="PING_TIME"/>
<                         <xs:enumeration value="MAX_FREE_THREADS"/>
<                     </xs:restriction>
<                 </xs:simpleType>
<             </xs:attribute>
<         </xs:complexType>
< 
<         <xs:complexType name="optionType">
<               <xs:attribute name="name" use="required">
<                   <xs:annotation>
<                       <xs:documentation>
<                           Name of the option to be set
<                       </xs:documentation>
<                   </xs:annotation>
<               </xs:attribute>
<           </xs:complexType>
