25c25
<            targetNamespace="urn:jboss:domain:resource-adapters:4.0" xmlns="urn:jboss:domain:resource-adapters:4.0"
---
>            targetNamespace="urn:jboss:domain:resource-adapters:1.1" xmlns="urn:jboss:domain:resource-adapters:1.1"
119,127d118
<       <xs:element name="workmanager" type="workmanagerType" minOccurs="0">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<                     Specifies the settings for the WorkManager used by this resource adapter
<                    ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
147c138
<     <xs:attribute name="id" type="xs:token" use="required">
---
>     <xs:attribute name="id" type="xs:token" use="optional">
156,164d146
<     <xs:attribute default="false" name="statistics-enabled" type="xs:boolean">
<           <xs:annotation>
<             <xs:documentation>
<                 <![CDATA[[
<                       Enable statistics for this resource-adapter
<                      ]]>
<             </xs:documentation>
<           </xs:annotation>
<     </xs:attribute>
312,323d293
<       <xs:element name="validate-on-match" type="xs:boolean" minOccurs="0">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<               The validate-on-match element indicates whether or not connection
<               level validation should be done when a connection factory attempts to match
<               a managed connection for a given set. This is typically exclusive to the
<               use of background validation
<              ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
455,509d424
<     <xs:attribute name="sharable" type="xs:boolean" default="true" use="optional">
<       <xs:annotation>
<         <xs:documentation>
<           <![CDATA[[
<                 Defines the connections as sharable which allows lazy association to be enabled
<                 if supported
<                ]]>
<         </xs:documentation>
<       </xs:annotation>
<     </xs:attribute>
<     <xs:attribute name="enlistment" type="xs:boolean" default="true" use="optional">
<       <xs:annotation>
<         <xs:documentation>
<           <![CDATA[[
<                 Defines if lazy enlistment should be used if supported by the resource adapter
<                ]]>
<         </xs:documentation>
<       </xs:annotation>
<     </xs:attribute>
<     <xs:attribute default="false" name="connectable" type="xs:boolean">
<       <xs:annotation>
<         <xs:documentation>
<             <![CDATA[[
<                  Enable CMR functionality on this connection
<                 ]]>
<         </xs:documentation>
<       </xs:annotation>
<     </xs:attribute>
<     <xs:attribute name="tracking" type="xs:boolean" use="optional">
<       <xs:annotation>
<         <xs:documentation>
<           <![CDATA[[
<             Defines if IronJacamar should track connection handles across transaction boundaries
<           ]]>
<         </xs:documentation>
<       </xs:annotation>
<     </xs:attribute>
<     <xs:attribute name="mcp" type="xs:token" use="optional">
<       <xs:annotation>
<         <xs:documentation>
<           <![CDATA[[
<             Defines the ManagedConnectionPool implementation, f.ex. org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool
<            ]]>
<         </xs:documentation>
<       </xs:annotation>
<     </xs:attribute>
<     <xs:attribute name="enlistment-trace" type="xs:boolean" use="optional">
<       <xs:annotation>
<         <xs:documentation>
<           <![CDATA[[
<             Defines if WildFly/IronJacamar should record enlistment traces
<            ]]>
<         </xs:documentation>
<       </xs:annotation>
<     </xs:attribute>
526,535d440
<       <xs:element name="initial-pool-size" type="xs:nonNegativeInteger" minOccurs="0">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<                     The initial-pool-size element indicates the initial number of connections
<                     a pool should hold. This default to 0. Ex: <initial-pool-size>1</initial-pool-size>
<                    ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
557,566d461
<       <xs:element name="fair" type="xs:boolean" minOccurs="0">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<               Defines if pool should use be fair
<               Default true
<              ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
582,593c477,478
<               Valid values are: FailingConnectionOnly (default), InvalidIdleConnections, IdleConnections, Gracefully, EntirePool,
<                                               AllInvalidIdleConnections, AllIdleConnections, AllGracefully, AllConnections
<                            ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
<       <xs:element name="capacity" type="capacityType" minOccurs="0" maxOccurs="1">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<                             Specifies the capacity policies for the pool
<                            ]]>
---
>               Valid values are: FailingConnectionOnly (default), IdleConnections, EntirePool
>              ]]>
647c532
<           <xs:element name="wrap-xa-resource" type="xs:boolean" default="true" minOccurs="0">
---
>           <xs:element name="wrap-xa-resource" type="xs:boolean" default="false" minOccurs="0">
840,1016d724
< 
<   <xs:complexType name="workmanagerType">
<     <xs:sequence>
<       <xs:element name="security" type="workmanagerSecurityType" minOccurs="0" maxOccurs="1">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<                   Defines the security model used by the WorkManager instance
<                  ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
<     </xs:sequence>
<   </xs:complexType>
< 
<   <xs:complexType name="workmanagerSecurityType">
<     <xs:sequence>
<       <xs:element name="mapping-required" type="xs:boolean" minOccurs="1" maxOccurs="1">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<                   Defines if a mapping is required for security credentials. A value of false means
<                   "Case 1" as defined in section 16.4.3, and a value of true means "Case 2" as
<                   defined in section 16.4.4.
<                  ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
<       <xs:element name="domain" type="xs:token" minOccurs="1" maxOccurs="1">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<                   Defines the name of the security domain that should be used
<                  ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
<       <xs:element name="default-principal" type="xs:token" minOccurs="0" maxOccurs="1">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<                   Defines a default principal name that should be added to the used Subject instance
<                  ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
<       <xs:element name="default-groups" type="workmanagerSecurityGroupsType" minOccurs="0" maxOccurs="1">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<                   Defines a default groups that should be added to the used Subject instance
<                  ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
<       <xs:element name="mappings" type="workmanagerSecurityMappingsType" minOccurs="0" maxOccurs="1">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<                   Defines the mappings that should be applied for Case 2
<                  ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
<     </xs:sequence>
<   </xs:complexType>
< 
<   <xs:complexType name="workmanagerSecurityGroupsType">
<     <xs:sequence>
<       <xs:element name="group" type="xs:token" minOccurs="1" maxOccurs="unbounded">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<                   The name of the group
<                  ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
<     </xs:sequence>
<   </xs:complexType>
< 
<   <xs:complexType name="workmanagerSecurityMappingsType">
<     <xs:sequence>
<       <xs:element name="users" type="workmanagerSecurityMappingsUsersType" minOccurs="0" maxOccurs="1">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<                   The mappings for the users
<                  ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
<       <xs:element name="groups" type="workmanagerSecurityMappingsGroupsType" minOccurs="0" maxOccurs="1">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<                   The mappings for the groups
<                  ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
<     </xs:sequence>
<   </xs:complexType>
< 
<   <xs:complexType name="workmanagerSecurityMappingsUsersType">
<     <xs:sequence>
<       <xs:element name="map" type="workmanagerSecurityMappingType" minOccurs="1" maxOccurs="unbounded">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<                   A user mapping
<                  ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
<     </xs:sequence>
<   </xs:complexType>
< 
<   <xs:complexType name="workmanagerSecurityMappingsGroupsType">
<     <xs:sequence>
<       <xs:element name="map" type="workmanagerSecurityMappingType" minOccurs="1" maxOccurs="unbounded">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<                   A group mapping
<                  ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
<     </xs:sequence>
<   </xs:complexType>
< 
<   <xs:complexType name="workmanagerSecurityMappingType">
<     <xs:sequence>
<     </xs:sequence>
<     <xs:attribute name="from" type="xs:token" use="required">
<       <xs:annotation>
<         <xs:documentation>
<           <![CDATA[[
<                 Specify the original value
<                ]]>
<         </xs:documentation>
<       </xs:annotation>
<     </xs:attribute>
<     <xs:attribute name="to" type="xs:token" use="required">
<       <xs:annotation>
<         <xs:documentation>
<           <![CDATA[[
<                 Specify the mapped value
<                ]]>
<         </xs:documentation>
<       </xs:annotation>
<     </xs:attribute>
<   </xs:complexType>
< 
<   <xs:complexType name="capacityType">
<     <xs:sequence>
<       <xs:element name="incrementer" type="extensionType" minOccurs="0">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<                   Defines the policy for incrementing connections in the pool
<                  ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
<       <xs:element name="decrementer" type="extensionType" minOccurs="0">
<         <xs:annotation>
<           <xs:documentation>
<             <![CDATA[[
<                   Defines the policy for decrementing connections in the pool
<                  ]]>
<           </xs:documentation>
<         </xs:annotation>
<       </xs:element>
<     </xs:sequence>
<   </xs:complexType>
