jboss-as-ejb3_1_4.xsd 17 KB

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