jboss-as-jca_1_1.xsd 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ JBoss, Home of Professional Open Source.
  4. ~ Copyright 2011, Red Hat, Inc., and individual contributors
  5. ~ as indicated by the @author tags. See the copyright.txt file in the
  6. ~ distribution for a full listing of individual contributors.
  7. ~
  8. ~ This is free software; you can redistribute it and/or modify it
  9. ~ under the terms of the GNU Lesser General Public License as
  10. ~ published by the Free Software Foundation; either version 2.1 of
  11. ~ the License, or (at your option) any later version.
  12. ~
  13. ~ This software is distributed in the hope that it will be useful,
  14. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. ~ Lesser General Public License for more details.
  17. ~
  18. ~ You should have received a copy of the GNU Lesser General Public
  19. ~ License along with this software; if not, write to the Free
  20. ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  21. ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  22. -->
  23. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  24. targetNamespace="urn:jboss:domain:jca:1.1"
  25. xmlns="urn:jboss:domain:jca:1.1"
  26. xmlns:threads="urn:jboss:domain:threads:1.1"
  27. elementFormDefault="qualified"
  28. attributeFormDefault="unqualified"
  29. version="1.0">
  30. <xs:import namespace="urn:jboss:domain:threads:1.1" schemaLocation="jboss-as-threads_1_1.xsd"/>
  31. <xs:element name="subsystem" type="subsystemType"/>
  32. <xs:complexType name="subsystemType">
  33. <xs:sequence>
  34. <xs:element name="archive-validation"
  35. type="archive-validationType" minOccurs="0">
  36. <xs:annotation>
  37. <xs:documentation>
  38. Toggle archive validation for the deployment
  39. units. If it's not present it's considered true
  40. with default attributes.
  41. </xs:documentation>
  42. </xs:annotation>
  43. </xs:element>
  44. <xs:element name="bean-validation"
  45. type="bean-validationType" minOccurs="0">
  46. <xs:annotation>
  47. <xs:documentation>
  48. Toggle bean validation (JSR-303) for the
  49. deployment units. If it's not present it's
  50. considered true
  51. </xs:documentation>
  52. </xs:annotation>
  53. </xs:element>
  54. <xs:element name="default-workmanager" type="workmanagerType" minOccurs="1">
  55. <xs:annotation>
  56. <xs:documentation>
  57. The default work manager and its thread pools
  58. </xs:documentation>
  59. </xs:annotation>
  60. </xs:element>
  61. <xs:element name="workmanager" type="workmanagerType" minOccurs="0" maxOccurs="unbounded">
  62. <xs:annotation>
  63. <xs:documentation>
  64. A custom work manager definition and its thread pools
  65. </xs:documentation>
  66. </xs:annotation>
  67. </xs:element>
  68. <xs:element name="bootstrap-contexts" type="bootstrap-contextsType" minOccurs="0">
  69. <xs:annotation>
  70. <xs:documentation>
  71. Definition of custom bootstrap contexts
  72. </xs:documentation>
  73. </xs:annotation>
  74. </xs:element>
  75. <xs:element name="cached-connection-manager" type="cached-connection-managerType" minOccurs="0" maxOccurs="1"></xs:element>
  76. </xs:sequence>
  77. </xs:complexType>
  78. <xs:complexType name="archive-validationType">
  79. <xs:attribute name="enabled" type="xs:boolean" default="true" use="optional">
  80. <xs:annotation>
  81. <xs:documentation>
  82. Specify whether archive validation is enabled. Default: true
  83. </xs:documentation>
  84. </xs:annotation>
  85. </xs:attribute>
  86. <xs:attribute name="fail-on-error" type="xs:boolean" default="true" use="optional">
  87. <xs:annotation>
  88. <xs:documentation>
  89. Should an archive validation error report fail the deployment. Default: true
  90. </xs:documentation>
  91. </xs:annotation>
  92. </xs:attribute>
  93. <xs:attribute name="fail-on-warn" type="xs:boolean" default="false" use="optional">
  94. <xs:annotation>
  95. <xs:documentation>
  96. Should an archive validation warning report fail the deployment. Default: false
  97. </xs:documentation>
  98. </xs:annotation>
  99. </xs:attribute>
  100. </xs:complexType>
  101. <xs:complexType name="bean-validationType">
  102. <xs:attribute name="enabled" type="xs:boolean" use="required">
  103. <xs:annotation>
  104. <xs:documentation>
  105. Specify whether bean validation is enabled.
  106. </xs:documentation>
  107. </xs:annotation>
  108. </xs:attribute>
  109. </xs:complexType>
  110. <xs:complexType name="workmanagerType">
  111. <xs:all>
  112. <xs:element name="short-running-threads" type="thread-pool" maxOccurs="1" minOccurs="1"></xs:element>
  113. <xs:element name="long-running-threads" type="thread-pool" maxOccurs="1" minOccurs="0"></xs:element>
  114. </xs:all>
  115. <xs:attribute name="name" type="xs:token" use="optional">
  116. <xs:annotation>
  117. <xs:documentation>
  118. Specifies the name of the work manager. Note, that custom work managers need
  119. to have a name defined.
  120. </xs:documentation>
  121. </xs:annotation>
  122. </xs:attribute>
  123. </xs:complexType>
  124. <xs:complexType name="bootstrap-contextsType">
  125. <xs:sequence>
  126. <xs:element name="bootstrap-context" type="bootstrap-contextType" maxOccurs="unbounded" minOccurs="1"></xs:element>
  127. </xs:sequence>
  128. </xs:complexType>
  129. <xs:complexType name="bootstrap-contextType">
  130. <xs:attribute name="name" type="xs:token" use="required">
  131. <xs:annotation>
  132. <xs:documentation>
  133. Specifies the name of the bootstrap context.
  134. </xs:documentation>
  135. </xs:annotation>
  136. </xs:attribute>
  137. <xs:attribute name="workmanager" type="xs:token" use="required">
  138. <xs:annotation>
  139. <xs:documentation>
  140. Specifies the name of the work manager to use for this context.
  141. </xs:documentation>
  142. </xs:annotation>
  143. </xs:attribute>
  144. </xs:complexType>
  145. <xs:complexType name="cached-connection-managerType">
  146. <xs:attribute name="debug" type="xs:boolean" use="optional"></xs:attribute>
  147. <xs:attribute name="error" type="xs:boolean" use="optional"></xs:attribute>
  148. </xs:complexType>
  149. <xs:complexType name="thread-pool">
  150. <xs:annotation>
  151. <xs:documentation>
  152. <![CDATA[
  153. See threads:blocking-bounded-queue-thread-pool.
  154. ]]>
  155. </xs:documentation>
  156. </xs:annotation>
  157. <xs:all>
  158. <xs:element name="core-threads" type="threads:countType" minOccurs="0"/>
  159. <xs:element name="queue-length" type="threads:countType"/>
  160. <xs:element name="max-threads" type="threads:countType"/>
  161. <xs:element name="keepalive-time" type="threads:time" minOccurs="0"/>
  162. <xs:element name="thread-factory" type="threads:ref" minOccurs="0"/>
  163. </xs:all>
  164. <xs:attribute name="allow-core-timeout" use="optional" type="xs:boolean"/>
  165. </xs:complexType>
  166. </xs:schema>