jboss-as-jca_1_0.xsd 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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.0"
  25. xmlns="urn:jboss:domain:jca:1.0"
  26. xmlns:threads="urn:jboss:domain:threads:1.0"
  27. elementFormDefault="qualified"
  28. attributeFormDefault="unqualified"
  29. version="1.0" xmlns:pref="urn:jboss:domain:threads:1.0">
  30. <xs:import namespace="urn:jboss:domain:threads:1.0" schemaLocation="jboss-as-threads_1_0.xsd"/>
  31. <xs:element name="subsystem" type="subsystemType"/>
  32. <xs:complexType name="subsystemType">
  33. <xs:all>
  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"
  55. type="default-workmanagerType" minOccurs="1">
  56. <xs:annotation>
  57. <xs:documentation>
  58. Configurations for thread pools used by default
  59. workmanager
  60. </xs:documentation>
  61. </xs:annotation>
  62. </xs:element>
  63. <xs:element name="cached-connection-manager" type="cached-connection-managerType" minOccurs="0" maxOccurs="1"></xs:element>
  64. </xs:all>
  65. </xs:complexType>
  66. <xs:complexType name="archive-validationType">
  67. <xs:attribute name="enabled" type="xs:boolean" default="true" use="optional">
  68. <xs:annotation>
  69. <xs:documentation>
  70. Specify whether archive validation is enabled. Default: true
  71. </xs:documentation>
  72. </xs:annotation>
  73. </xs:attribute>
  74. <xs:attribute name="fail-on-error" type="xs:boolean" default="true" use="optional">
  75. <xs:annotation>
  76. <xs:documentation>
  77. Should an archive validation error report fail the deployment. Default: true
  78. </xs:documentation>
  79. </xs:annotation>
  80. </xs:attribute>
  81. <xs:attribute name="fail-on-warn" type="xs:boolean" default="false" use="optional">
  82. <xs:annotation>
  83. <xs:documentation>
  84. Should an archive validation warning report fail the deployment. Default: false
  85. </xs:documentation>
  86. </xs:annotation>
  87. </xs:attribute>
  88. </xs:complexType>
  89. <xs:complexType name="bean-validationType">
  90. <xs:attribute name="enabled" type="xs:boolean" use="required">
  91. <xs:annotation>
  92. <xs:documentation>
  93. Specify whether bean validation is enabled.
  94. </xs:documentation>
  95. </xs:annotation>
  96. </xs:attribute>
  97. </xs:complexType>
  98. <xs:complexType name="default-workmanagerType">
  99. <xs:all>
  100. <xs:element name="short-running-threads" type="thread-pool" maxOccurs="1" minOccurs="1"></xs:element>
  101. <xs:element name="long-running-threads" type="thread-pool" maxOccurs="1" minOccurs="0"></xs:element>
  102. </xs:all>
  103. </xs:complexType>
  104. <xs:complexType name="cached-connection-managerType">
  105. <xs:attribute name="debug" type="xs:boolean" use="optional"></xs:attribute>
  106. <xs:attribute name="error" type="xs:boolean" use="optional"></xs:attribute>
  107. </xs:complexType>
  108. <xs:complexType name="thread-pool">
  109. <xs:annotation>
  110. <xs:documentation>
  111. <![CDATA[
  112. See threads:bounded-queue-thread-pool.
  113. ]]>
  114. </xs:documentation>
  115. </xs:annotation>
  116. <xs:all>
  117. <xs:element name="core-threads" type="threads:scaled-count" minOccurs="0"/>
  118. <xs:element name="queue-length" type="threads:scaled-count"/>
  119. <xs:element name="max-threads" type="threads:scaled-count"/>
  120. <xs:element name="keepalive-time" type="threads:time" minOccurs="0"/>
  121. <xs:element name="thread-factory" type="threads:ref" minOccurs="0"/>
  122. <xs:element name="handoff-executor" type="threads:ref" minOccurs="0"/>
  123. <xs:element name="properties" type="threads:properties" minOccurs="0"/>
  124. </xs:all>
  125. <xs:attribute name="allow-core-timeout" use="optional" type="xs:boolean"/>
  126. <xs:attribute name="blocking" use="optional" type="xs:boolean"/>
  127. </xs:complexType>
  128. </xs:schema>