/ejb3/src/main/resources/schema/jboss-ejb-client_1_3.xsd

https://github.com/ochaloup/jboss-as · XML Schema · 330 lines · 315 code · 15 blank · 0 comment · 0 complexity · 54783cd89c4c308e568e629aaf2e5d24 MD5 · raw file

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ JBoss, Home of Professional Open Source.
  4. ~ Copyright 2020, 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. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  24. targetNamespace="urn:jboss:ejb-client:1.3"
  25. xmlns="urn:jboss:ejb-client:1.3"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. version="1.3">
  29. <!-- Root element -->
  30. <xsd:element name="jboss-ejb-client" type="jboss-ejb-clientType">
  31. <xsd:annotation>
  32. <xsd:documentation>
  33. Root element for a jboss-ejb-client.xml file
  34. </xsd:documentation>
  35. </xsd:annotation>
  36. </xsd:element>
  37. <xsd:complexType name="jboss-ejb-clientType">
  38. <xsd:annotation>
  39. <xsd:documentation>
  40. The EJB client configurations
  41. </xsd:documentation>
  42. </xsd:annotation>
  43. <xsd:all>
  44. <xsd:element name="client-context" type="client-contextType">
  45. <xsd:annotation>
  46. <xsd:documentation>
  47. Configurations that will be used to setup an EJB client context for the
  48. deployment.
  49. </xsd:documentation>
  50. </xsd:annotation>
  51. </xsd:element>
  52. </xsd:all>
  53. </xsd:complexType>
  54. <xsd:complexType name="client-contextType">
  55. <xsd:all>
  56. <xsd:element name="ejb-receivers" type="ejb-receiversType">
  57. <xsd:annotation>
  58. <xsd:documentation>
  59. Configures EJB receivers for the client context
  60. </xsd:documentation>
  61. </xsd:annotation>
  62. </xsd:element>
  63. <xsd:element name="clusters" type="clustersType" minOccurs="0">
  64. <xsd:annotation>
  65. <xsd:documentation>
  66. Cluster configurations applicable for this client context
  67. </xsd:documentation>
  68. </xsd:annotation>
  69. </xsd:element>
  70. <xsd:element name="profile" type="profileType" minOccurs="0">
  71. <xsd:annotation>
  72. <xsd:documentation>
  73. Remote connection profile selected for this client context
  74. </xsd:documentation>
  75. </xsd:annotation>
  76. </xsd:element>
  77. </xsd:all>
  78. <xsd:attribute name="invocation-timeout" type="xsd:long" use="optional">
  79. <xsd:annotation>
  80. <xsd:documentation>
  81. A timeout, in milliseconds, that will be used for EJB invocations. A value of zero
  82. or a negative value will imply a "wait forever" semantic where the invocation will never timeout
  83. and the client will wait for the invocation result indefinitely.
  84. </xsd:documentation>
  85. </xsd:annotation>
  86. </xsd:attribute>
  87. <xsd:attribute name="deployment-node-selector" type="xsd:string" use="optional">
  88. <xsd:annotation>
  89. <xsd:documentation>
  90. The fully qualified class name of the class which implements the
  91. org.jboss.ejb.client.DeploymentNodeSelector
  92. interface. The instance of this class will be used for selecting nodes, from among multiple eligible
  93. nodes within an EJB client context, which can handle a particular deployment
  94. </xsd:documentation>
  95. </xsd:annotation>
  96. </xsd:attribute>
  97. </xsd:complexType>
  98. <xsd:complexType name="ejb-receiversType">
  99. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  100. <xsd:element name="remoting-ejb-receiver" type="remoting-ejb-receiverType">
  101. <xsd:annotation>
  102. <xsd:documentation>
  103. Configures a remoting based EJB receiver
  104. </xsd:documentation>
  105. </xsd:annotation>
  106. </xsd:element>
  107. </xsd:choice>
  108. <xsd:attribute name="exclude-local-receiver" type="xsd:boolean" use="optional" default="false">
  109. <xsd:annotation>
  110. <xsd:documentation>
  111. Set to true if the local receiver which gets added to the EJB client context by default, has to be
  112. excluded from the context
  113. </xsd:documentation>
  114. </xsd:annotation>
  115. </xsd:attribute>
  116. <xsd:attribute name="local-receiver-pass-by-value" type="xsd:boolean" use="optional" default="true">
  117. <xsd:annotation>
  118. <xsd:documentation>
  119. Set to false if the local receiver that's available in the EJB client context, should use
  120. pass-by-reference (instead of pass-by-value) semantics for the EJB invocations.
  121. </xsd:documentation>
  122. </xsd:annotation>
  123. </xsd:attribute>
  124. </xsd:complexType>
  125. <xsd:complexType name="remoting-ejb-receiverType">
  126. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  127. <xsd:element name="channel-creation-options" type="channel-creation-optionsType" maxOccurs="1">
  128. <xsd:annotation>
  129. <xsd:documentation>
  130. Configures the channel creation options for this remoting EJB receiver
  131. </xsd:documentation>
  132. </xsd:annotation>
  133. </xsd:element>
  134. </xsd:choice>
  135. <xsd:attribute name="outbound-connection-ref" type="xsd:string" use="required">
  136. <xsd:annotation>
  137. <xsd:documentation>
  138. Reference to an outbound connection configured in the remoting subsystem
  139. </xsd:documentation>
  140. </xsd:annotation>
  141. </xsd:attribute>
  142. <xsd:attribute name="connect-timeout" type="xsd:long" use="optional">
  143. <xsd:annotation>
  144. <xsd:documentation>
  145. The timeout, in milliseconds, to be used while creating a connection
  146. </xsd:documentation>
  147. </xsd:annotation>
  148. </xsd:attribute>
  149. </xsd:complexType>
  150. <xsd:complexType name="clustersType">
  151. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  152. <xsd:element name="cluster" type="clusterType">
  153. <xsd:annotation>
  154. <xsd:documentation>
  155. Configures a cluster in the client context
  156. </xsd:documentation>
  157. </xsd:annotation>
  158. </xsd:element>
  159. </xsd:choice>
  160. </xsd:complexType>
  161. <xsd:complexType name="clusterType">
  162. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  163. <xsd:element name="channel-creation-options" type="channel-creation-optionsType" maxOccurs="1">
  164. <xsd:annotation>
  165. <xsd:documentation>
  166. Configures the channel creation options for the nodes in this cluster
  167. </xsd:documentation>
  168. </xsd:annotation>
  169. </xsd:element>
  170. <xsd:element name="connection-creation-options" type="connection-creation-optionsType" maxOccurs="1">
  171. <xsd:annotation>
  172. <xsd:documentation>
  173. Configures the connection creation options for the nodes in this cluster
  174. </xsd:documentation>
  175. </xsd:annotation>
  176. </xsd:element>
  177. <xsd:element name="node" type="clusterNodeType" maxOccurs="unbounded">
  178. <xsd:annotation>
  179. <xsd:documentation>
  180. Configures the channel creation options for the nodes in this cluster
  181. </xsd:documentation>
  182. </xsd:annotation>
  183. </xsd:element>
  184. </xsd:choice>
  185. <xsd:attribute name="name" type="xsd:string" use="required">
  186. <xsd:annotation>
  187. <xsd:documentation>
  188. The name of the cluster
  189. </xsd:documentation>
  190. </xsd:annotation>
  191. </xsd:attribute>
  192. <xsd:attribute name="connect-timeout" type="xsd:long" use="optional">
  193. <xsd:annotation>
  194. <xsd:documentation>
  195. The timeout in milliseconds while creating a connection for the nodes in the cluster
  196. </xsd:documentation>
  197. </xsd:annotation>
  198. </xsd:attribute>
  199. <xsd:attribute name="max-allowed-connected-nodes" type="xsd:long" use="optional">
  200. <xsd:annotation>
  201. <xsd:documentation>
  202. The maximum number of nodes to which the connection will be established in the cluster
  203. </xsd:documentation>
  204. </xsd:annotation>
  205. </xsd:attribute>
  206. <xsd:attribute name="cluster-node-selector" type="xsd:string" use="optional">
  207. <xsd:annotation>
  208. <xsd:documentation>
  209. The fully qualified class name of the class which implements the
  210. org.jboss.ejb.client.ClusterNodeSelector
  211. interface. The instance of this class will be used for selecting nodes, within the cluster, for
  212. handling invocations
  213. </xsd:documentation>
  214. </xsd:annotation>
  215. </xsd:attribute>
  216. <xsd:attribute name="username" type="xsd:string" use="optional">
  217. <xsd:annotation>
  218. <xsd:documentation>
  219. The username that will be used for authentication during connection creation for nodes in the
  220. cluster
  221. </xsd:documentation>
  222. </xsd:annotation>
  223. </xsd:attribute>
  224. <xsd:attribute name="security-realm" type="xsd:string" use="optional">
  225. <xsd:annotation>
  226. <xsd:documentation>
  227. The security-realm that will be used for authentication during connection creation for nodes in the
  228. cluster
  229. </xsd:documentation>
  230. </xsd:annotation>
  231. </xsd:attribute>
  232. </xsd:complexType>
  233. <xsd:complexType name="clusterNodeType">
  234. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  235. <xsd:element name="channel-creation-options" type="channel-creation-optionsType" maxOccurs="1">
  236. <xsd:annotation>
  237. <xsd:documentation>
  238. Configures the channel creation options for the node
  239. </xsd:documentation>
  240. </xsd:annotation>
  241. </xsd:element>
  242. <xsd:element name="connection-creation-options" type="connection-creation-optionsType" maxOccurs="1">
  243. <xsd:annotation>
  244. <xsd:documentation>
  245. Configures the connection creation options for the node
  246. </xsd:documentation>
  247. </xsd:annotation>
  248. </xsd:element>
  249. </xsd:choice>
  250. <xsd:attribute name="name" type="xsd:string" use="required">
  251. <xsd:annotation>
  252. <xsd:documentation>
  253. The name of the cluster node
  254. </xsd:documentation>
  255. </xsd:annotation>
  256. </xsd:attribute>
  257. <xsd:attribute name="connect-timeout" type="xsd:long" use="optional">
  258. <xsd:annotation>
  259. <xsd:documentation>
  260. The timeout in milliseconds while creating a connection for the node
  261. </xsd:documentation>
  262. </xsd:annotation>
  263. </xsd:attribute>
  264. <xsd:attribute name="username" type="xsd:string" use="optional">
  265. <xsd:annotation>
  266. <xsd:documentation>
  267. The username that will be used for authentication during connection creation for the node
  268. </xsd:documentation>
  269. </xsd:annotation>
  270. </xsd:attribute>
  271. <xsd:attribute name="security-realm" type="xsd:string" use="optional">
  272. <xsd:annotation>
  273. <xsd:documentation>
  274. The security-realm that will be used for authentication during connection creation for the node
  275. cluster
  276. </xsd:documentation>
  277. </xsd:annotation>
  278. </xsd:attribute>
  279. </xsd:complexType>
  280. <xsd:complexType name="channel-creation-optionsType">
  281. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  282. <xsd:element name="property" type="propertyType"/>
  283. </xsd:choice>
  284. </xsd:complexType>
  285. <xsd:complexType name="connection-creation-optionsType">
  286. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  287. <xsd:element name="property" type="propertyType"/>
  288. </xsd:choice>
  289. </xsd:complexType>
  290. <xsd:complexType name="propertyType">
  291. <xsd:attribute name="name" type="xsd:string" use="required">
  292. <xsd:annotation>
  293. <xsd:documentation>
  294. The name of the property. Example org.xnio.Options.SASL_POLICY_NOANONYMOUS
  295. </xsd:documentation>
  296. </xsd:annotation>
  297. </xsd:attribute>
  298. <xsd:attribute name="value" type="xsd:string" use="required">
  299. <xsd:annotation>
  300. <xsd:documentation>
  301. The value of the property.
  302. </xsd:documentation>
  303. </xsd:annotation>
  304. </xsd:attribute>
  305. </xsd:complexType>
  306. <xsd:complexType name="profileType">
  307. <xsd:attribute name="name" type="xsd:string" use="required">
  308. <xsd:annotation>
  309. <xsd:documentation>
  310. The name of the profile.
  311. </xsd:documentation>
  312. </xsd:annotation>
  313. </xsd:attribute>
  314. </xsd:complexType>
  315. </xsd:schema>