jboss-as-ejb3_1_3.xsd 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  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.3"
  25. xmlns="urn:jboss:domain:ejb3:1.3"
  26. xmlns:threads="urn:jboss:domain:threads:1.1"
  27. elementFormDefault="qualified"
  28. attributeFormDefault="unqualified"
  29. version="1.3">
  30. <xs:import namespace="urn:jboss:domain:threads:1.1" schemaLocation="jboss-as-threads_1_1.xsd"/>
  31. <!-- The ejb3 subsystem root element -->
  32. <xs:element name="subsystem" type="ejb3-subsystemType"/>
  33. <xs:complexType name="ejb3-subsystemType">
  34. <xs:annotation>
  35. <xs:documentation>
  36. EJB3 subsystem configurations
  37. </xs:documentation>
  38. </xs:annotation>
  39. <xs:all>
  40. <xs:element name="session-bean" type="session-beanType" minOccurs="0" maxOccurs="1"/>
  41. <xs:element name="mdb" type="mdbType" minOccurs="0" maxOccurs="1"/>
  42. <xs:element name="entity-bean" type="entityType" minOccurs="0" maxOccurs="1"/>
  43. <xs:element name="pools" type="poolsType" minOccurs="0" maxOccurs="1"/>
  44. <xs:element name="caches" type="cachesType" minOccurs="0" maxOccurs="1"/>
  45. <xs:element name="passivation-stores" type="passivation-storesType" minOccurs="0" maxOccurs="1"/>
  46. <xs:element name="async" type="asyncType" minOccurs="0" maxOccurs="1"/>
  47. <xs:element name="timer-service" type="timerServiceType" minOccurs="0" maxOccurs="1"/>
  48. <xs:element name="remote" type="remoteType" minOccurs="0" maxOccurs="1"/>
  49. <xs:element name="thread-pools" type="threadPoolsType" minOccurs="0" maxOccurs="1"/>
  50. <xs:element name="iiop" type="iiopType" minOccurs="0" maxOccurs="1"/>
  51. <xs:element name="in-vm-remote-interface-invocation" type="in-vm-remote-interface-invocationType"
  52. minOccurs="0" maxOccurs="1"/>
  53. <xs:element name="default-distinct-name" type="default-distinct-nameType" minOccurs="0" maxOccurs="1"/>
  54. <xs:element name="statistics" type="statisticsType" minOccurs="0" maxOccurs="1"/>
  55. </xs:all>
  56. </xs:complexType>
  57. <xs:complexType name="mdbType">
  58. <xs:all>
  59. <xs:element name="resource-adapter-ref" type="resource-adapter-refType" minOccurs="0" maxOccurs="1"/>
  60. <xs:element name="bean-instance-pool-ref" type="bean-instance-pool-refType" minOccurs="0" maxOccurs="1"/>
  61. </xs:all>
  62. </xs:complexType>
  63. <xs:complexType name="entityType">
  64. <xs:all>
  65. <xs:element name="bean-instance-pool-ref" type="bean-instance-pool-refType" minOccurs="0" maxOccurs="1"/>
  66. <xs:element name="optimistic-locking" type="optimistic-lockingType" minOccurs="0" maxOccurs="1"/>
  67. </xs:all>
  68. </xs:complexType>
  69. <xs:complexType name="optimistic-lockingType">
  70. <xs:attribute name="enabled" type="xs:boolean" use="required"/>
  71. </xs:complexType>
  72. <xs:complexType name="remoteType">
  73. <xs:all>
  74. <xs:element name="channel-creation-options" type="channel-creation-optionsType" minOccurs="0"
  75. maxOccurs="1"/>
  76. </xs:all>
  77. <xs:attribute name="connector-ref" type="xs:string" use="required"/>
  78. <xs:attribute name="thread-pool-name" type="xs:token" use="required"/>
  79. </xs:complexType>
  80. <xs:complexType name="asyncType">
  81. <xs:attribute name="thread-pool-name" type="xs:token" use="required"/>
  82. </xs:complexType>
  83. <xs:complexType name="session-beanType">
  84. <xs:all>
  85. <xs:element name="stateless" type="stateless-beanType" minOccurs="0" maxOccurs="1"/>
  86. <xs:element name="stateful" type="stateful-beanType" minOccurs="0" maxOccurs="1"/>
  87. <xs:element name="singleton" type="singleton-beanType" minOccurs="0" maxOccurs="1"/>
  88. </xs:all>
  89. </xs:complexType>
  90. <xs:complexType name="stateless-beanType">
  91. <xs:all>
  92. <xs:element name="bean-instance-pool-ref" type="bean-instance-pool-refType" minOccurs="0" maxOccurs="1"/>
  93. </xs:all>
  94. </xs:complexType>
  95. <xs:complexType name="stateful-beanType">
  96. <xs:attribute name="default-access-timeout" type="xs:positiveInteger" default="5000" use="optional">
  97. <xs:annotation>
  98. <xs:documentation>
  99. The default access timeout, for stateful session beans, in milliseconds
  100. </xs:documentation>
  101. </xs:annotation>
  102. </xs:attribute>
  103. <xs:attribute name="cache-ref" type="xs:string"/>
  104. <xs:attribute name="clustered-cache-ref" type="xs:string" use="optional"/>
  105. </xs:complexType>
  106. <xs:complexType name="singleton-beanType">
  107. <xs:attribute name="default-access-timeout" type="xs:positiveInteger" default="5000" use="optional">
  108. <xs:annotation>
  109. <xs:documentation>
  110. The default access timeout, for singleton beans, in milliseconds
  111. </xs:documentation>
  112. </xs:annotation>
  113. </xs:attribute>
  114. </xs:complexType>
  115. <xs:complexType name="resource-adapter-refType">
  116. <xs:attribute name="resource-adapter-name" type="xs:string" use="required"/>
  117. </xs:complexType>
  118. <xs:complexType name="bean-instance-pool-refType">
  119. <xs:attribute name="pool-name" use="required" type="xs:string"/>
  120. </xs:complexType>
  121. <xs:complexType name="poolsType">
  122. <xs:all>
  123. <xs:element name="bean-instance-pools" type="bean-instance-poolsType" minOccurs="0" maxOccurs="1"/>
  124. </xs:all>
  125. </xs:complexType>
  126. <xs:complexType name="bean-instance-poolsType">
  127. <xs:choice minOccurs="0" maxOccurs="unbounded">
  128. <xs:element name="strict-max-pool" type="strict-max-poolType"/>
  129. </xs:choice>
  130. </xs:complexType>
  131. <xs:complexType name="strict-max-poolType">
  132. <xs:attribute name="name" type="xs:string" use="required"/>
  133. <xs:attribute name="max-pool-size" type="xs:positiveInteger" default="20" use="optional"/>
  134. <xs:attribute name="instance-acquisition-timeout" type="xs:positiveInteger" default="5" use="optional"/>
  135. <xs:attribute name="instance-acquisition-timeout-unit" type="timeout-unitType"
  136. default="MINUTES" use="optional"/>
  137. </xs:complexType>
  138. <xs:complexType name="cachesType">
  139. <xs:sequence>
  140. <xs:element name="cache" type="cacheType" minOccurs="0" maxOccurs="unbounded"/>
  141. </xs:sequence>
  142. </xs:complexType>
  143. <xs:complexType name="cacheType">
  144. <xs:attribute name="name" type="xs:string" use="required"/>
  145. <xs:attribute name="passivation-store-ref" type="xs:string"/>
  146. <xs:attribute name="aliases" type="aliases"/>
  147. </xs:complexType>
  148. <xs:complexType name="passivation-storesType">
  149. <xs:choice minOccurs="0" maxOccurs="unbounded">
  150. <xs:element name="file-passivation-store" type="file-passivation-storeType"/>
  151. <xs:element name="cluster-passivation-store" type="cluster-passivation-storeType"/>
  152. </xs:choice>
  153. </xs:complexType>
  154. <xs:attributeGroup name="passivation-common">
  155. <xs:attribute name="name" type="xs:string" use="required"/>
  156. <xs:attribute name="idle-timeout" type="xs:positiveInteger" default="300"/>
  157. <xs:attribute name="idle-timeout-unit" type="timeout-unitType" default="SECONDS"/>
  158. </xs:attributeGroup>
  159. <xs:complexType name="file-passivation-storeType">
  160. <xs:attributeGroup ref="passivation-common"/>
  161. <xs:attribute name="max-size" type="xs:positiveInteger" default="100000"/>
  162. <xs:attribute name="relative-to" type="xs:string" default="jboss.server.data.dir"/>
  163. <xs:attribute name="sessions-path" type="xs:string" default="ejb3/sessions"/>
  164. <xs:attribute name="groups-path" type="xs:string" default="ejb3/groups"/>
  165. <xs:attribute name="subdirectory-count" type="xs:positiveInteger" default="100"/>
  166. </xs:complexType>
  167. <xs:complexType name="cluster-passivation-storeType">
  168. <xs:attributeGroup ref="passivation-common"/>
  169. <xs:attribute name="max-size" type="xs:positiveInteger" default="10000"/>
  170. <xs:attribute name="passivate-events-on-replicate" type="xs:boolean" default="true"/>
  171. <xs:attribute name="cache-container" type="xs:string" default="ejb"/>
  172. <xs:attribute name="bean-cache" type="xs:string"/>
  173. <xs:attribute name="client-mappings-cache" type="xs:string" default="remote-connector-client-mappings"/>
  174. </xs:complexType>
  175. <xs:simpleType name="aliases">
  176. <xs:annotation>
  177. <xs:documentation>A list of aliases.</xs:documentation>
  178. </xs:annotation>
  179. <xs:list itemType="xs:string"/>
  180. </xs:simpleType>
  181. <xs:simpleType name="timeout-unitType">
  182. <xs:annotation>
  183. <xs:documentation>
  184. TimeUnit that are allowed for instance-acquisition-timeout on a pool
  185. </xs:documentation>
  186. </xs:annotation>
  187. <xs:restriction base="xs:token">
  188. <xs:enumeration value="DAYS"/>
  189. <xs:enumeration value="HOURS"/>
  190. <xs:enumeration value="MINUTES"/>
  191. <xs:enumeration value="SECONDS"/>
  192. <xs:enumeration value="MILLISECONDS"/>
  193. <xs:enumeration value="MICROSECONDS"/>
  194. <xs:enumeration value="NANOSECONDS"/>
  195. </xs:restriction>
  196. </xs:simpleType>
  197. <xs:complexType name="timerServiceType">
  198. <xs:sequence>
  199. <xs:element name="data-store" type="dataStoreType" minOccurs="0" maxOccurs="1"/>
  200. </xs:sequence>
  201. <xs:attribute name="thread-pool-name" type="xs:token" use="required"/>
  202. </xs:complexType>
  203. <xs:complexType name="threadPoolsType">
  204. <xs:sequence>
  205. <xs:element name="thread-pool" type="threadPoolType" minOccurs="0" maxOccurs="unbounded"/>
  206. </xs:sequence>
  207. </xs:complexType>
  208. <xs:complexType name="threadPoolType">
  209. <xs:annotation>
  210. <xs:documentation>
  211. <![CDATA[
  212. A thread pool executor with an unbounded queue. Such a thread pool has a core size and a queue with no
  213. upper bound. When a task is submitted, if the number of running threads is less than the core size,
  214. a new thread is created. Otherwise, the task is placed in queue. If too many tasks are allowed to be
  215. submitted to this type of executor, an out of memory condition may occur.
  216. The "name" attribute is the name of the created executor.
  217. The "max-threads" attribute must be used to specify the thread pool size. The nested
  218. "keepalive-time" element may used to specify the amount of time that pool threads should
  219. be kept running when idle; if not specified, threads will run until the executor is shut down.
  220. The "thread-factory" element specifies the bean name of a specific threads subsystem thread factory to
  221. use to create worker threads. Usually it will not be set for an EJB3 thread pool and an appropriate
  222. default thread factory will be used.
  223. ]]>
  224. </xs:documentation>
  225. </xs:annotation>
  226. <xs:all>
  227. <xs:element name="max-threads" type="threads:countType"/>
  228. <xs:element name="keepalive-time" type="threads:time" minOccurs="0"/>
  229. <xs:element name="thread-factory" type="threads:ref" minOccurs="0"/>
  230. </xs:all>
  231. <xs:attribute name="name" use="required" type="xs:string"/>
  232. </xs:complexType>
  233. <xs:complexType name="dataStoreType">
  234. <xs:attribute name="path" type="xs:string"/>
  235. <xs:attribute name="relative-to" type="xs:string"/>
  236. </xs:complexType>
  237. <xs:complexType name="iiopType">
  238. <xs:attribute name="enable-by-default" type="xs:boolean" use="required"/>
  239. <xs:attribute name="use-qualified-name" type="xs:boolean" use="required"/>
  240. </xs:complexType>
  241. <xs:complexType name="in-vm-remote-interface-invocationType">
  242. <xs:annotation>
  243. <xs:documentation>
  244. <![CDATA[
  245. The EJB3 spec mandates that the invocations on remote interfaces of a EJB, use pass-by-value
  246. semantics for parameters (i.e. parameter values are serialized/deserialized) during invocation.
  247. The pass-by-value attribute of this element can be used to switch that behaviour to pass the parameters
  248. by reference (and skip the serialization/deserialization step). Setting the pass-by-value to false will
  249. return in pass-by-reference semantics.
  250. ]]>
  251. </xs:documentation>
  252. </xs:annotation>
  253. <xs:attribute name="pass-by-value" type="xs:boolean" use="required"/>
  254. </xs:complexType>
  255. <xs:complexType name="default-distinct-nameType">
  256. <xs:attribute name="value" type="xs:string"/>
  257. </xs:complexType>
  258. <xs:complexType name="statisticsType">
  259. <xs:attribute name="enabled" type="xs:string"/>
  260. </xs:complexType>
  261. <xs:complexType name="channel-creation-optionsType">
  262. <xs:annotation>
  263. <xs:documentation>
  264. <![CDATA[
  265. The options that will be used while creating the channel for EJB remote invocation communication
  266. ]]>
  267. </xs:documentation>
  268. </xs:annotation>
  269. <xs:choice minOccurs="0" maxOccurs="unbounded">
  270. <xs:element name="option" type="optionType"/>
  271. </xs:choice>
  272. </xs:complexType>
  273. <xs:complexType name="optionType">
  274. <xs:annotation>
  275. <xs:documentation>
  276. <![CDATA[
  277. The "name" attribute specifies the name of the option being configured.
  278. The "value" attribute is the value that's going to be set for the option.
  279. The "type" attribute value can either be "xnio" or "remoting". If it's "xnio", then the option
  280. being configured will be looked up against the org.xnio.Options class. If it's "remoting" then
  281. the option will be looked up against the org.xnio.Option.RemotingOptions class.
  282. ]]>
  283. </xs:documentation>
  284. </xs:annotation>
  285. <xs:attribute name="name" type="xs:string" use="required"/>
  286. <xs:attribute name="value" type="xs:string"/>
  287. <xs:attribute name="type" type="xs:string" use="required"/>
  288. </xs:complexType>
  289. </xs:schema>