jboss-as-txn_1_0.xsd 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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:transactions:1.0"
  25. xmlns="urn:jboss:domain:transactions:1.0"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. version="1.0">
  29. <!-- The transaction subsystem root element -->
  30. <xs:element name="subsystem" type="subsystem"/>
  31. <xs:complexType name="subsystem">
  32. <xs:annotation>
  33. <xs:documentation>
  34. <![CDATA[
  35. The configuration of the transactions subsystem.
  36. ]]>
  37. </xs:documentation>
  38. </xs:annotation>
  39. <xs:all>
  40. <xs:element name="recovery-environment" type="recovery-environment"/>
  41. <xs:element name="core-environment" type="core-environment"/>
  42. <xs:element name="coordinator-environment" type="coordinator-environment" minOccurs="0"/>
  43. <xs:element name="object-store" type="object-store" minOccurs="0"/>
  44. </xs:all>
  45. </xs:complexType>
  46. <xs:complexType name="recovery-environment">
  47. <xs:annotation>
  48. <xs:documentation>
  49. <![CDATA[
  50. The recovery environment configuration.
  51. The "socket-binding" attribute is used to reference the correct socket binding to use for the
  52. recovery environment.
  53. The "status-socket-binding" attribute is used to reference the correct socket binding to use for the
  54. transaction status manager.
  55. The "recovery-listener" attribute sets if recovery system should listen on a network socket or not.
  56. ]]>
  57. </xs:documentation>
  58. </xs:annotation>
  59. <xs:attribute name="socket-binding" type="xs:string" />
  60. <xs:attribute name="status-socket-binding" type="xs:string" />
  61. <xs:attribute name="recovery-listener" type="xs:boolean" default="false"/>
  62. </xs:complexType>
  63. <xs:complexType name="core-environment">
  64. <xs:annotation>
  65. <xs:documentation>
  66. <![CDATA[
  67. The core environment configuration.
  68. The process-id element specifies the process id implemention.
  69. The "node-identifier" attribute is used to set the node identifier on the core environment.
  70. The "path" attribute denotes a relative or absolute filesystem path denoting where the transaction
  71. manager core should store data.
  72. The "relative-to" attribute references a global path configuration in the domain model, defaulting
  73. to the JBoss Application Server data directory (jboss.server.data.dir). If the value of the "path" attribute
  74. does not specify an absolute pathname, it will treated as relative to this path.
  75. ]]>
  76. </xs:documentation>
  77. </xs:annotation>
  78. <xs:all>
  79. <xs:element name="process-id" type="process-id" />
  80. </xs:all>
  81. <xs:attribute name="node-identifier" type="xs:string" default="1"/>
  82. <xs:attribute name="path" type="xs:string" default="var"/>
  83. <xs:attribute name="relative-to" type="xs:string" default="jboss.server.data.dir"/>
  84. </xs:complexType>
  85. <xs:complexType name="process-id">
  86. <xs:annotation>
  87. <xs:documentation>
  88. <![CDATA[
  89. The process identifer implementation
  90. The "node-identifier" attribute is used to set the node identifier on the core environment.
  91. The "socket-process-id-max-ports" attribute is used to set the max ports on the core environment.
  92. ]]>
  93. </xs:documentation>
  94. </xs:annotation>
  95. <xs:choice>
  96. <xs:element name="uuid" type="uuid" />
  97. <xs:element name="socket" type="socket-id" />
  98. </xs:choice>
  99. </xs:complexType>
  100. <xs:complexType name="uuid">
  101. <xs:annotation>
  102. <xs:documentation>
  103. <![CDATA[
  104. The UUID based process identifer implementation
  105. ]]>
  106. </xs:documentation>
  107. </xs:annotation>
  108. </xs:complexType>
  109. <xs:complexType name="socket-id">
  110. <xs:annotation>
  111. <xs:documentation>
  112. <![CDATA[
  113. The socket based process identifer implementation
  114. The "socket-binding" attribute is used to specify the port to bind to.
  115. The "socket-process-id-max-ports" attribute is used to set the max ports on the core environment.
  116. ]]>
  117. </xs:documentation>
  118. </xs:annotation>
  119. <xs:attribute name="socket-binding" type="xs:string" use="required"/>
  120. <xs:attribute name="socket-process-id-max-ports" type="xs:int" default="10" />
  121. </xs:complexType>
  122. <xs:attribute name="socket-process-id-max-ports" type="xs:int" default="10" />
  123. <xs:complexType name="coordinator-environment">
  124. <xs:annotation>
  125. <xs:documentation>
  126. <![CDATA[
  127. The coordinator environment configuration.
  128. enable-statistics - if recording of transaction statistics is enabled, false otherwise.
  129. enable-tsm-status - if the transaction status manager (TSM) service, needed for out of process recovery, should be provided or not.
  130. default-timeout - the default transaction lifetime, in seconds.
  131. ]]>
  132. </xs:documentation>
  133. </xs:annotation>
  134. <xs:attribute name="enable-statistics" type="xs:boolean" default="false"/>
  135. <xs:attribute name="enable-tsm-status" type="xs:boolean" default="false"/>
  136. <xs:attribute name="default-timeout" type="xs:int" default="300" />
  137. </xs:complexType>
  138. <xs:complexType name="object-store">
  139. <xs:annotation>
  140. <xs:documentation>
  141. <![CDATA[
  142. The object store configuration.
  143. The "path" attribute denotes a relative or absolute filesystem path denoting where the transaction
  144. manager object store should store data.
  145. The "relative-to" attribute references a global path configuration in the domain model, defaulting
  146. to the JBoss Application Server data directory (jboss.server.data.dir). If the value of the "path" attribute
  147. does not specify an absolute pathname, it will treated as relative to this path.
  148. ]]>
  149. </xs:documentation>
  150. </xs:annotation>
  151. <xs:attribute name="path" type="xs:string" default="tx-object-store"/>
  152. <xs:attribute name="relative-to" type="xs:string" default="jboss.server.data.dir" />
  153. </xs:complexType>
  154. </xs:schema>