jboss-common_6_0.xsd 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
  3. targetNamespace="http://www.jboss.com/xml/ns/javaee"
  4. xmlns:javaee="http://java.sun.com/xml/ns/javaee"
  5. xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
  6. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  7. elementFormDefault="qualified"
  8. attributeFormDefault="unqualified"
  9. version="6.0">
  10. <xsd:annotation>
  11. <xsd:documentation> JBoss, Home of Professional Open Source Copyright 2005, JBoss Inc., and
  12. individual contributors as indicated by the @authors tag. See the copyright.txt in the
  13. distribution for a full listing of individual contributors. This is free software; you can
  14. redistribute it and/or modify it under the terms of the GNU Lesser General Public License as
  15. published by the Free Software Foundation; either version 2.1 of the License, or (at your
  16. option) any later version. This software is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  18. A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should
  19. have received a copy of the GNU Lesser General Public License along with this software; if
  20. not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  21. 02110-1301 USA, or see the FSF site: http://www.fsf.org. </xsd:documentation>
  22. </xsd:annotation>
  23. <xsd:annotation>
  24. <xsd:documentation>
  25. <![CDATA[
  26. This XML Schema defines types, elements and model groups that common to all application-specific JBoss schemas.
  27. The target namespace is
  28. http://www.jboss.com/xml/ns/javaee
  29. Online URL http://www.jboss.org/j2ee/schema/jboss-common_6_0.xsd
  30. ]]>
  31. </xsd:documentation>
  32. </xsd:annotation>
  33. <xsd:annotation>
  34. <xsd:documentation> The following conventions apply to all Java EE deployment descriptor
  35. elements unless indicated otherwise. - In elements that specify a pathname to a file within
  36. the same JAR file, relative filenames (i.e., those not starting with "/") are considered
  37. relative to the root of the JAR file's namespace. Absolute filenames (i.e., those starting
  38. with "/") also specify names in the root of the JAR file's namespace. In general, relative
  39. names are preferred. The exception is .war files where absolute names are preferred for
  40. consistency with the Servlet API. </xsd:documentation>
  41. </xsd:annotation>
  42. <xsd:import namespace="http://java.sun.com/xml/ns/javaee" schemaLocation="http://java.sun.com/xml/ns/javaee/javaee_6.xsd"/>
  43. <xsd:group name="descriptionGroup">
  44. <xsd:sequence>
  45. <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded" />
  46. <xsd:element name="display-name" type="javaee:display-nameType" minOccurs="0" maxOccurs="unbounded" />
  47. <xsd:element name="icon" type="javaee:iconType" minOccurs="0" maxOccurs="unbounded" />
  48. </xsd:sequence>
  49. </xsd:group>
  50. <xsd:group name="jndiEnvironmentRefsGroup">
  51. <xsd:sequence>
  52. <xsd:element name="env-entry" type="jboss:env-entryType" minOccurs="0" maxOccurs="unbounded" />
  53. <xsd:element name="ejb-ref" type="jboss:ejb-refType" minOccurs="0" maxOccurs="unbounded" />
  54. <xsd:element name="ejb-local-ref" type="jboss:ejb-local-refType" minOccurs="0" maxOccurs="unbounded" />
  55. <xsd:group ref="jboss:service-refGroup" />
  56. <xsd:element name="resource-ref" type="jboss:resource-refType" minOccurs="0" maxOccurs="unbounded" />
  57. <xsd:element name="resource-env-ref" type="jboss:resource-env-refType" minOccurs="0" maxOccurs="unbounded" />
  58. <xsd:element name="message-destination-ref" type="jboss:message-destination-refType" minOccurs="0" maxOccurs="unbounded" />
  59. <xsd:element name="persistence-context-ref" type="jboss:persistence-context-refType" minOccurs="0" maxOccurs="unbounded" />
  60. <xsd:element name="persistence-unit-ref" type="jboss:persistence-unit-refType" minOccurs="0" maxOccurs="unbounded" />
  61. <xsd:element name="post-construct" type="jboss:lifecycle-callbackType" minOccurs="0" maxOccurs="unbounded" />
  62. <xsd:element name="pre-destroy" type="jboss:lifecycle-callbackType" minOccurs="0" maxOccurs="unbounded" />
  63. <xsd:element name="data-source" type="jboss:data-sourceType" minOccurs="0" maxOccurs="unbounded" />
  64. </xsd:sequence>
  65. </xsd:group>
  66. <xsd:complexType name="env-entryType">
  67. <xsd:sequence>
  68. <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded" />
  69. <xsd:element name="env-entry-name" type="javaee:jndi-nameType" />
  70. <xsd:element name="env-entry-type" type="javaee:env-entry-type-valuesType" minOccurs="0" />
  71. <xsd:element name="env-entry-value" type="javaee:xsdStringType" minOccurs="0" />
  72. <xsd:group ref="jboss:resourceGroup" />
  73. </xsd:sequence>
  74. <xsd:attribute name="id" type="xsd:ID" />
  75. </xsd:complexType>
  76. <xsd:complexType name="injection-targetType">
  77. <xsd:sequence>
  78. <xsd:element name="injection-target-class" type="javaee:fully-qualified-classType" />
  79. <xsd:element name="injection-target-name" type="javaee:java-identifierType" />
  80. </xsd:sequence>
  81. </xsd:complexType>
  82. <xsd:complexType name="lifecycle-callbackType">
  83. <xsd:sequence>
  84. <xsd:element name="lifecycle-callback-class" type="javaee:fully-qualified-classType" minOccurs="0" />
  85. <xsd:element name="lifecycle-callback-method" type="javaee:java-identifierType" />
  86. </xsd:sequence>
  87. </xsd:complexType>
  88. <xsd:complexType name="message-destination-refType">
  89. <xsd:sequence>
  90. <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded" />
  91. <xsd:element name="message-destination-ref-name" type="javaee:jndi-nameType"/>
  92. <xsd:element name="message-destination-type" type="javaee:message-destination-typeType" minOccurs="0" />
  93. <xsd:element name="message-destination-usage" type="javaee:message-destination-usageType" minOccurs="0" />
  94. <xsd:element name="message-destination-link" type="javaee:message-destination-linkType" minOccurs="0" />
  95. <xsd:group ref="jboss:resourceGroup" />
  96. </xsd:sequence>
  97. <xsd:attribute name="id" type="xsd:ID" />
  98. </xsd:complexType>
  99. <!-- Bring persistence-context-refType info jboss namespace -->
  100. <xsd:complexType name="persistence-context-refType">
  101. <xsd:sequence>
  102. <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded" />
  103. <xsd:element name="persistence-context-ref-name" type="javaee:jndi-nameType" />
  104. <xsd:element name="persistence-unit-name" type="javaee:string" minOccurs="0" />
  105. <xsd:element name="persistence-context-type" type="javaee:persistence-context-typeType" minOccurs="0" />
  106. <xsd:element name="persistence-property" type="javaee:propertyType" minOccurs="0" maxOccurs="unbounded" />
  107. <xsd:group ref="jboss:resourceGroup" />
  108. </xsd:sequence>
  109. <xsd:attribute name="id" type="xsd:ID" />
  110. </xsd:complexType>
  111. <xsd:complexType name="persistence-unit-refType">
  112. <xsd:sequence>
  113. <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded" />
  114. <xsd:element name="persistence-unit-ref-name" type="javaee:jndi-nameType" />
  115. <xsd:element name="persistence-unit-name" type="javaee:string" minOccurs="0" />
  116. <xsd:group ref="jboss:resourceGroup" />
  117. </xsd:sequence>
  118. <xsd:attribute name="id" type="xsd:ID" />
  119. </xsd:complexType>
  120. <xsd:complexType name="resource-env-refType">
  121. <xsd:sequence>
  122. <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded" />
  123. <xsd:element name="resource-env-ref-name" type="javaee:jndi-nameType" />
  124. <xsd:element name="resource-env-ref-type" type="javaee:fully-qualified-classType" minOccurs="0" />
  125. <xsd:group ref="jboss:resourceGroup" />
  126. </xsd:sequence>
  127. <xsd:attribute name="id" type="xsd:ID" />
  128. </xsd:complexType>
  129. <xsd:complexType name="data-sourceType">
  130. <xsd:sequence>
  131. <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" />
  132. <xsd:element name="name" type="javaee:jndi-nameType" />
  133. <xsd:element name="class-name" type="javaee:fully-qualified-classType" minOccurs="0" />
  134. <xsd:element name="server-name" type="javaee:string" minOccurs="0" />
  135. <xsd:element name="port-number" type="javaee:xsdIntegerType" minOccurs="0" />
  136. <xsd:element name="database-name" type="javaee:string" minOccurs="0" />
  137. <xsd:element name="url" type="javaee:jdbc-urlType" minOccurs="0" />
  138. <xsd:element name="user" type="javaee:string" minOccurs="0" />
  139. <xsd:element name="password" type="javaee:string" minOccurs="0" />
  140. <xsd:element name="property" type="javaee:propertyType" minOccurs="0" maxOccurs="unbounded" />
  141. <xsd:element name="login-timeout" type="javaee:xsdIntegerType" minOccurs="0" />
  142. <xsd:element name="transactional" type="javaee:xsdBooleanType" minOccurs="0" />
  143. <xsd:element name="isolation-level" type="javaee:isolation-levelType" minOccurs="0" />
  144. <xsd:element name="initial-pool-size" type="javaee:xsdIntegerType" minOccurs="0" />
  145. <xsd:element name="max-pool-size" type="javaee:xsdIntegerType" minOccurs="0" />
  146. <xsd:element name="min-pool-size" type="javaee:xsdIntegerType" minOccurs="0" />
  147. <xsd:element name="max-idle-time" type="javaee:xsdIntegerType" minOccurs="0" />
  148. <xsd:element name="max-statements" type="javaee:xsdIntegerType" minOccurs="0" />
  149. </xsd:sequence>
  150. <xsd:attribute name="id" type="xsd:ID"/>
  151. </xsd:complexType>
  152. <xsd:group name="resourceGroup">
  153. <xsd:sequence>
  154. <!-- In jboss xml we allow the use of jndi-name instead of mapped-name -->
  155. <xsd:choice minOccurs="0">
  156. <xsd:element name="jndi-name" type="javaee:jndi-nameType"/>
  157. <xsd:element name="mapped-name" type="javaee:xsdStringType"/>
  158. </xsd:choice>
  159. <xsd:element name="injection-target" type="jboss:injection-targetType" minOccurs="0" maxOccurs="unbounded" />
  160. <xsd:element name="ignore-dependency" type="javaee:emptyType" minOccurs="0"/>
  161. </xsd:sequence>
  162. </xsd:group>
  163. <xsd:group name="service-refGroup">
  164. <xsd:sequence>
  165. <xsd:element name="service-ref" type="jboss:service-refType" minOccurs="0" maxOccurs="unbounded">
  166. <xsd:key name="service-ref_handler-name-key">
  167. <xsd:selector xpath="javaee:handler" />
  168. <xsd:field xpath="javaee:handler-name" />
  169. </xsd:key>
  170. </xsd:element>
  171. </xsd:sequence>
  172. </xsd:group>
  173. <xsd:complexType name="jndi-binding-policyType">
  174. <xsd:annotation>
  175. <xsd:documentation>
  176. <![CDATA[
  177. The jndiBindingPolicyType defines the fully-qualified name of
  178. a class that implements the JNDI binding policy.
  179. ]]>
  180. </xsd:documentation>
  181. </xsd:annotation>
  182. <xsd:simpleContent>
  183. <xsd:restriction base="javaee:fully-qualified-classType"/>
  184. </xsd:simpleContent>
  185. </xsd:complexType>
  186. <xsd:complexType name="jmx-nameType">
  187. <xsd:annotation>
  188. <xsd:documentation> The jmx-name element allows one to specify the JMX ObjectName to use for
  189. the MBean associated with the ejb-jar module. This must be a unique name and valid JMX
  190. ObjectName string. </xsd:documentation>
  191. </xsd:annotation>
  192. <xsd:simpleContent>
  193. <xsd:restriction base="javaee:string"/>
  194. </xsd:simpleContent>
  195. </xsd:complexType>
  196. <xsd:complexType name="security-domainType">
  197. <xsd:annotation>
  198. <xsd:documentation> The security-domain element specifies the JNDI name of the security
  199. manager that implements the EJBSecurityManager and RealmMapping for the domain. When
  200. specified at the jboss level it specifies the security domain for all j2ee components in the
  201. deployment unit. One can override the global security-domain at the container level using
  202. the security-domain element at the container-configuration level. </xsd:documentation>
  203. </xsd:annotation>
  204. <xsd:simpleContent>
  205. <xsd:restriction base="javaee:string"/>
  206. </xsd:simpleContent>
  207. </xsd:complexType>
  208. <xsd:complexType name="security-roleType">
  209. <xsd:annotation>
  210. <xsd:documentation> The security-role element contains the definition of a security role.
  211. The definition consists of an the security role name and principal name element(s). </xsd:documentation>
  212. </xsd:annotation>
  213. <xsd:sequence>
  214. <xsd:element name="description"
  215. type="javaee:descriptionType"
  216. minOccurs="0"
  217. maxOccurs="unbounded"/>
  218. <xsd:element name="role-name"
  219. type="javaee:role-nameType"/>
  220. <xsd:element name="principal-name" type="jboss:principal-nameType" maxOccurs="unbounded"/>
  221. </xsd:sequence>
  222. <xsd:attribute name="id" type="xsd:ID"/>
  223. </xsd:complexType>
  224. <xsd:complexType name="principal-nameType">
  225. <xsd:annotation>
  226. <xsd:documentation> The principal-name element is the name of the principal that is mapped
  227. to the assembly role-name. </xsd:documentation>
  228. </xsd:annotation>
  229. <xsd:simpleContent>
  230. <xsd:restriction base="javaee:string"/>
  231. </xsd:simpleContent>
  232. </xsd:complexType>
  233. <xsd:complexType name="dependsType">
  234. <xsd:annotation>
  235. <xsd:documentation> The depends element gives a JMX ObjectName of a service on which the
  236. container or ejb depends. (default) </xsd:documentation>
  237. </xsd:annotation>
  238. <xsd:simpleContent>
  239. <xsd:restriction base="javaee:string"/>
  240. </xsd:simpleContent>
  241. </xsd:complexType>
  242. <xsd:complexType name="local-jndi-nameType">
  243. <xsd:annotation>
  244. <xsd:documentation> The JNDI name under with the local interface should be bound. If it is not
  245. provided jboss will assume "jndi-name" = "beanClass/local" </xsd:documentation>
  246. </xsd:annotation>
  247. <xsd:simpleContent>
  248. <xsd:restriction base="javaee:string"/>
  249. </xsd:simpleContent>
  250. </xsd:complexType>
  251. <xsd:complexType name="ejb-refType">
  252. <xsd:annotation>
  253. <xsd:documentation> The ejb-ref element is used to give the jndi-name of an external ejb
  254. reference. In the case of an external ejb reference, you don't provide a ejb-link element in
  255. ejb-jar.xml, but you provide a jndi-name in jboss.xml Used in: entity, session,
  256. message-driven, consumer, and service </xsd:documentation>
  257. </xsd:annotation>
  258. <xsd:sequence>
  259. <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
  260. <xsd:element name="ejb-ref-name" type="javaee:ejb-ref-nameType" minOccurs="0"/>
  261. <xsd:element name="ejb-ref-type" type="javaee:ejb-ref-typeType" minOccurs="0"/>
  262. <xsd:element name="home" type="javaee:homeType" minOccurs="0"/>
  263. <xsd:element name="remote" type="javaee:remoteType" minOccurs="0"/>
  264. <xsd:element name="ejb-link" type="javaee:ejb-linkType" minOccurs="0"/>
  265. <xsd:group ref="jboss:resourceGroup"/>
  266. </xsd:sequence>
  267. <xsd:attribute name="id" type="xsd:ID"/>
  268. <!--
  269. <xsd:complexContent>
  270. <xsd:extension base="javaee:ejb-refType">
  271. <xsd:sequence>
  272. <xsd:element name="jndi-name" type="javaee:jndi-nameType" minOccurs="0"/>
  273. <xsd:element name="ignore-dependency" type="javaee:emptyType" minOccurs="0"/>
  274. </xsd:sequence>
  275. </xsd:extension>
  276. </xsd:complexContent>
  277. -->
  278. </xsd:complexType>
  279. <xsd:complexType name="ejb-local-refType">
  280. <xsd:annotation>
  281. <xsd:documentation> The ejb-local-ref element is used to give the jndi-name of an external ejb
  282. reference. In the case of an external ejb reference, you don't provide a ejb-link element in
  283. ejb-jar.xml, but you provide a jndi-name in jboss.xml </xsd:documentation>
  284. </xsd:annotation>
  285. <xsd:sequence>
  286. <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
  287. <xsd:element name="ejb-ref-name" type="javaee:ejb-ref-nameType" minOccurs="0"/>
  288. <xsd:element name="ejb-ref-type" type="javaee:ejb-ref-typeType" minOccurs="0"/>
  289. <xsd:element name="local-home" type="javaee:local-homeType" minOccurs="0"/>
  290. <xsd:element name="local" type="javaee:localType" minOccurs="0"/>
  291. <xsd:element name="ejb-link" type="javaee:ejb-linkType" minOccurs="0"/>
  292. <xsd:element name="local-jndi-name" type="javaee:jndi-nameType" minOccurs="0"/>
  293. <xsd:group ref="jboss:resourceGroup"/>
  294. </xsd:sequence>
  295. <xsd:attribute name="id" type="xsd:ID"/>
  296. </xsd:complexType>
  297. <xsd:complexType name="resource-refType">
  298. <xsd:annotation>
  299. <xsd:documentation> The resource-ref element gives a mapping between the "code name" of a
  300. resource (res-ref-name, provided by the Bean Developer) and its "xml name" (resource-name,
  301. provided by the Application Assembler). If no resource-ref is provided, jboss will assume
  302. that "xml-name" = "code name" See resource-managers. </xsd:documentation>
  303. </xsd:annotation>
  304. <xsd:sequence>
  305. <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
  306. <xsd:element name="res-ref-name" type="javaee:jndi-nameType" minOccurs="0">
  307. <xsd:annotation>
  308. <xsd:documentation> The res-ref-name element specifies the name of a resource manager
  309. connection factory reference. The name is a JNDI name relative to the java:comp/env
  310. context. The name must be unique within a Deployment File. </xsd:documentation>
  311. </xsd:annotation>
  312. </xsd:element>
  313. <xsd:element name="res-type" type="javaee:fully-qualified-classType" minOccurs="0">
  314. <xsd:annotation>
  315. <xsd:documentation> The res-type element specifies the type of the data source. The type
  316. is specified by the fully qualified Java language class or interface expected to be
  317. implemented by the data source. </xsd:documentation>
  318. </xsd:annotation>
  319. </xsd:element>
  320. <xsd:element name="res-auth" type="javaee:res-authType" minOccurs="0"/>
  321. <xsd:element name="res-sharing-scope" type="javaee:res-sharing-scopeType" minOccurs="0"/>
  322. <!-- We redefine part of the resourceGroup here, so we can't ref it -->
  323. <xsd:choice>
  324. <xsd:element name="resource-name" type="javaee:xsdStringType"/>
  325. <xsd:element name="jndi-name" type="javaee:xsdStringType"/>
  326. <xsd:element name="mapped-name" type="javaee:xsdStringType"/>
  327. <xsd:element name="res-url" type="javaee:xsdStringType"/>
  328. </xsd:choice>
  329. <xsd:element name="injection-target" type="jboss:injection-targetType" minOccurs="0" maxOccurs="unbounded" />
  330. <xsd:element name="ignore-dependency" type="javaee:emptyType" minOccurs="0"/>
  331. </xsd:sequence>
  332. <xsd:attribute name="id" type="xsd:ID"/>
  333. </xsd:complexType>
  334. <xsd:complexType name="service-ref-nameType">
  335. <xsd:annotation>
  336. <xsd:documentation> The service-ref-name element gives the ENC relative name used in the
  337. ejb-jar.xml service-ref-name element. </xsd:documentation>
  338. </xsd:annotation>
  339. <xsd:simpleContent>
  340. <xsd:restriction base="javaee:string"/>
  341. </xsd:simpleContent>
  342. </xsd:complexType>
  343. <xsd:complexType name="loader-repositoryType" mixed="true">
  344. <xsd:annotation>
  345. <xsd:documentation>
  346. <![CDATA[
  347. The loader-repository specifies the name of the UnifiedLoaderRepository
  348. MBean to use for the ear to provide ear level scoping of classes deployed
  349. in the ear. It is a unique JMX ObjectName string. It may also specify
  350. an arbitrary configuration by including a loader-repository-config element.
  351. Examples:
  352. <loader-repository>jboss.test:loader=cts-cmp2v1-sar.ear</loader-repository>
  353. <loader-repository loaderRepositoryClass='dot.com.LoaderRepository'>
  354. dot.com:loader=unique-archive-name
  355. <loader-repository-config configParserClass='dot.com.LoaderParser'>
  356. java2ParentDelegaton=true
  357. </loader-repository-config>
  358. </loader-repository>
  359. </loader-repository>
  360. ]]>
  361. </xsd:documentation>
  362. </xsd:annotation>
  363. <xsd:sequence>
  364. <xsd:element name="loader-repository-config" type="jboss:loader-repository-configType"
  365. minOccurs="0" maxOccurs="unbounded"/>
  366. </xsd:sequence>
  367. <xsd:attribute name="id" type="xsd:ID"/>
  368. <xsd:attribute name="loaderRepositoryClass" type="xsd:string"/>
  369. </xsd:complexType>
  370. <!-- **************************************************** -->
  371. <xsd:complexType name="loader-repository-configType" mixed="true">
  372. <xsd:annotation>
  373. <xsd:documentation> The loader-repository-config element specifies any arbitrary configuration
  374. fragment for use in configuring the loader-repository instance. The actual content of this
  375. element is specific to the loaderRepositoryClass and the code parsing the element.
  376. </xsd:documentation>
  377. </xsd:annotation>
  378. <xsd:attribute name="id" type="xsd:ID"/>
  379. <xsd:attribute name="configParserClass" type="xsd:string"/>
  380. </xsd:complexType>
  381. <xsd:complexType name="service-refType">
  382. <xsd:annotation>
  383. <xsd:documentation>
  384. <![CDATA[
  385. Runtime settings for a web service reference. In the simplest case,
  386. there is no runtime information required for a service ref. Runtime info
  387. is only needed in the following cases :
  388. * to define the port that should be used to resolve a container-managed port
  389. * to define default Stub property settings for Stub objects
  390. * to define the URL of a final WSDL document to be used
  391. Example:
  392. <service-ref>
  393. <service-ref-name>OrganizationService</service-ref-name>
  394. <wsdl-override>file:/wsdlRepository/organization-service.wsdl</wsdl-override>
  395. </service-ref>
  396. <service-ref>
  397. <service-ref-name>OrganizationService</service-ref-name>
  398. <config-name>Secure Client Config</config-name>
  399. <config-file>META-INF/jbossws-client-config.xml</config-file>
  400. <handler-chain>META-INF/jbossws-client-handlers.xml</handler-chain>
  401. </service-ref>
  402. <service-ref>
  403. <service-ref-name>SecureService</service-ref-name>
  404. <service-impl-class>org.jboss.tests.ws.jaxws.webserviceref.SecureEndpointService</service-impl-class>
  405. <service-qname>{http://org.jboss.ws/wsref}SecureEndpointService</service-qname>
  406. <port-component-ref>
  407. <service-endpoint-interface>org.jboss.tests.ws.jaxws.webserviceref.SecureEndpoint</service-endpoint-interface>
  408. <port-qname>{http://org.jboss.ws/wsref}SecureEndpointPort</port-qname>
  409. <stub-property>
  410. <name>javax.xml.ws.security.auth.username</name>
  411. <value>kermit</value>
  412. </stub-property>
  413. <stub-property>
  414. <name>javax.xml.ws.security.auth.password</name>
  415. <value>thefrog</value>
  416. </stub-property>
  417. </port-component-ref>
  418. </service-ref>
  419. ]]>
  420. </xsd:documentation>
  421. </xsd:annotation>
  422. <xsd:sequence>
  423. <xsd:element name="service-ref-name" type="xsd:string"/>
  424. <xsd:element name="service-impl-class" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  425. <xsd:element name="service-qname" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  426. <xsd:element name="config-name" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  427. <xsd:element name="config-file" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  428. <xsd:element name="handler-chain" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  429. <xsd:element name="port-component-ref" type="jboss:port-component-refType" minOccurs="0" maxOccurs="unbounded"/>
  430. <xsd:element name="wsdl-override" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  431. </xsd:sequence>
  432. <xsd:attribute name="id" type="xsd:ID"/>
  433. </xsd:complexType>
  434. <!--
  435. Information for a port within a service-ref.
  436. Either service-endpoint-interface or wsdl-port or both
  437. (service-endpoint-interface and wsdl-port) should be specified.
  438. If both are specified, wsdl-port represents the
  439. port the container should choose for container-managed port selection.
  440. The same wsdl-port value must not appear in
  441. more than one port-component-ref entry within the same service-ref.
  442. If a particular service-endpoint-interface is using container-managed port
  443. selection, it must not appear in more than one port-component-ref entry
  444. within the same service-ref.
  445. -->
  446. <xsd:complexType name="port-component-refType">
  447. <xsd:sequence>
  448. <xsd:element name="service-endpoint-interface" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  449. <xsd:element name="port-qname" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  450. <xsd:element name="config-name" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  451. <xsd:element name="config-file" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  452. <xsd:element name="stub-property" type="jboss:stub-propertyType" minOccurs="0" maxOccurs="unbounded"/>
  453. <xsd:element name="call-property" type="jboss:call-propertyType" minOccurs="0" maxOccurs="unbounded"/>
  454. </xsd:sequence>
  455. </xsd:complexType>
  456. <xsd:complexType name="stub-propertyType">
  457. <xsd:sequence>
  458. <xsd:element name="prop-name" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  459. <xsd:element name="prop-value" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  460. </xsd:sequence>
  461. </xsd:complexType>
  462. <xsd:complexType name="call-propertyType">
  463. <xsd:sequence>
  464. <xsd:element name="prop-name" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  465. <xsd:element name="prop-value" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  466. </xsd:sequence>
  467. </xsd:complexType>
  468. <xsd:complexType name="message-destinationType">
  469. <xsd:annotation>
  470. <xsd:documentation> The message-destination element is used to configure the jndi-name for a
  471. message-destination in ejb-jar.xml Used in: assembly-descriptor </xsd:documentation>
  472. </xsd:annotation>
  473. <xsd:sequence>
  474. <xsd:group ref="jboss:descriptionGroup"/>
  475. <xsd:element name="message-destination-name" type="javaee:xsdStringType"/>
  476. <xsd:choice>
  477. <xsd:element name="jndi-name" type="javaee:xsdStringType"/>
  478. <xsd:element name="mapped-name" type="javaee:xsdStringType"/>
  479. </xsd:choice>
  480. <xsd:element name="lookup-name" type="javaee:xsdStringType"/>
  481. </xsd:sequence>
  482. <xsd:attribute name="id" type="xsd:ID"/>
  483. </xsd:complexType>
  484. <xsd:complexType name="webservice-descriptionType">
  485. <xsd:annotation>
  486. <xsd:documentation>
  487. <![CDATA[
  488. Runtime information about a web service.
  489. wsdl-publish-location is optionally used to specify
  490. where the final wsdl and any dependent files should be stored. This location
  491. resides on the file system from which deployment is initiated.
  492. ]]>
  493. </xsd:documentation>
  494. </xsd:annotation>
  495. <xsd:sequence>
  496. <xsd:element name="webservice-description-name" type="xsd:string"/>
  497. <xsd:element name="config-name" type="xsd:string" minOccurs="0"/>
  498. <xsd:element name="config-file" type="xsd:string" minOccurs="0"/>
  499. <xsd:element name="wsdl-publish-location" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  500. </xsd:sequence>
  501. <xsd:attribute name="id" type="xsd:ID" />
  502. </xsd:complexType>
  503. </xsd:schema>