jboss-as-ejb3_1_1.xsd 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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:ejb3:1.1"
  25. xmlns="urn:jboss:domain:ejb3:1.1"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. version="1.1">
  29. <!-- The ejb3 subsystem root element -->
  30. <xs:element name="subsystem" type="ejb3-subsystemType"/>
  31. <xs:complexType name="ejb3-subsystemType">
  32. <xs:annotation>
  33. <xs:documentation>
  34. EJB3 subsystem configurations
  35. </xs:documentation>
  36. </xs:annotation>
  37. <xs:all>
  38. <xs:element name="mdb" type="mdbType" minOccurs="0" maxOccurs="1"/>
  39. <xs:element name="session-bean" type="session-beanType" minOccurs="0" maxOccurs="1"/>
  40. <xs:element name="pools" type="poolsType" minOccurs="0" maxOccurs="1"/>
  41. <xs:element name="timer-service" type="timerServiceType" minOccurs="0" maxOccurs="1"/>
  42. </xs:all>
  43. <xs:attribute name="lite" type="xs:boolean" use="optional"/>
  44. </xs:complexType>
  45. <xs:complexType name="mdbType">
  46. <xs:all>
  47. <xs:element name="resource-adapter-ref" type="resource-adapter-refType" minOccurs="0" maxOccurs="1"/>
  48. <xs:element name="bean-instance-pool-ref" type="bean-instance-pool-refType" minOccurs="0" maxOccurs="1"/>
  49. </xs:all>
  50. </xs:complexType>
  51. <xs:complexType name="session-beanType">
  52. <xs:all>
  53. <xs:element name="stateless" type="stateless-beanType" minOccurs="0" maxOccurs="1"/>
  54. </xs:all>
  55. </xs:complexType>
  56. <xs:complexType name="stateless-beanType">
  57. <xs:all>
  58. <xs:element name="bean-instance-pool-ref" type="bean-instance-pool-refType" minOccurs="0" maxOccurs="1"/>
  59. </xs:all>
  60. </xs:complexType>
  61. <xs:complexType name="resource-adapter-refType">
  62. <xs:attribute name="resource-adapter-name" type="xs:string" use="required"/>
  63. </xs:complexType>
  64. <xs:complexType name="bean-instance-pool-refType">
  65. <xs:attribute name="pool-name" use="required" type="xs:string"/>
  66. </xs:complexType>
  67. <xs:complexType name="poolsType">
  68. <xs:all>
  69. <xs:element name="bean-instance-pools" type="bean-instance-poolsType" minOccurs="0" maxOccurs="1"/>
  70. </xs:all>
  71. </xs:complexType>
  72. <xs:complexType name="bean-instance-poolsType">
  73. <xs:choice minOccurs="0" maxOccurs="unbounded">
  74. <xs:element name="strict-max-pool" type="strict-max-poolType"/>
  75. </xs:choice>
  76. </xs:complexType>
  77. <xs:complexType name="strict-max-poolType">
  78. <xs:attribute name="name" type="xs:string" use="required"/>
  79. <xs:attribute name="max-pool-size" type="xs:positiveInteger" default="20" use="optional"/>
  80. <xs:attribute name="instance-acquisition-timeout" type="xs:positiveInteger" default="5" use="optional"/>
  81. <xs:attribute name="instance-acquisition-timeout-unit" type="instance-acquisition-timeout-unitType"
  82. default="MINUTES" use="optional"/>
  83. </xs:complexType>
  84. <xs:simpleType name="instance-acquisition-timeout-unitType">
  85. <xs:annotation>
  86. <xs:documentation>
  87. TimeUnit that are allowed for instance-acquisition-timeout on a pool
  88. </xs:documentation>
  89. </xs:annotation>
  90. <xs:restriction base="xs:token">
  91. <xs:enumeration value="HOURS"/>
  92. <xs:enumeration value="MINUTES"/>
  93. <xs:enumeration value="SECONDS"/>
  94. <xs:enumeration value="MILLISECONDS"/>
  95. </xs:restriction>
  96. </xs:simpleType>
  97. <xs:complexType name="timerServiceType">
  98. <xs:sequence>
  99. <xs:element name="thread-pool" type="threadPoolType" minOccurs="0" maxOccurs="1"/>
  100. <xs:element name="data-store" type="dataStoreType" minOccurs="0" maxOccurs="1"/>
  101. </xs:sequence>
  102. </xs:complexType>
  103. <xs:complexType name="threadPoolType">
  104. <xs:attribute name="core-threads" type="xs:int">
  105. <xs:annotation>
  106. <xs:documentation>
  107. The number of threads that the the thread pool will keep alive. Defaults to 0.
  108. </xs:documentation>
  109. </xs:annotation>
  110. </xs:attribute>
  111. <xs:attribute name="max-threads" type="xs:int">
  112. <xs:annotation>
  113. <xs:documentation>
  114. The maximum number of threads that will be used to run timer service tasks. Defaults to the
  115. number of processes as returned by Runtime.availableProcessors()
  116. </xs:documentation>
  117. </xs:annotation>
  118. </xs:attribute>
  119. </xs:complexType>
  120. <xs:complexType name="dataStoreType">
  121. <xs:attribute name="path" type="xs:string" />
  122. <xs:attribute name="relative-to" type="xs:string" />
  123. </xs:complexType>
  124. </xs:schema>