application-client_6.xsd 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
  3. targetNamespace="http://java.sun.com/xml/ns/javaee"
  4. xmlns:javaee="http://java.sun.com/xml/ns/javaee"
  5. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  6. elementFormDefault="qualified"
  7. attributeFormDefault="unqualified"
  8. version="6">
  9. <xsd:annotation>
  10. <xsd:documentation>
  11. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  12. Copyright 2003-2009 Sun Microsystems, Inc. All rights reserved.
  13. The contents of this file are subject to the terms of either the
  14. GNU General Public License Version 2 only ("GPL") or the Common
  15. Development and Distribution License("CDDL") (collectively, the
  16. "License"). You may not use this file except in compliance with
  17. the License. You can obtain a copy of the License at
  18. https://glassfish.dev.java.net/public/CDDL+GPL.html or
  19. glassfish/bootstrap/legal/LICENSE.txt. See the License for the
  20. specific language governing permissions and limitations under the
  21. License.
  22. When distributing the software, include this License Header
  23. Notice in each file and include the License file at
  24. glassfish/bootstrap/legal/LICENSE.txt. Sun designates this
  25. particular file as subject to the "Classpath" exception as
  26. provided by Sun in the GPL Version 2 section of the License file
  27. that accompanied this code. If applicable, add the following
  28. below the License Header, with the fields enclosed by brackets []
  29. replaced by your own identifying information:
  30. "Portions Copyrighted [year] [name of copyright owner]"
  31. Contributor(s):
  32. If you wish your version of this file to be governed by only the
  33. CDDL or only the GPL Version 2, indicate your decision by adding
  34. "[Contributor] elects to include this software in this
  35. distribution under the [CDDL or GPL Version 2] license." If you
  36. don't indicate a single choice of license, a recipient has the
  37. option to distribute your version of this file under either the
  38. CDDL, the GPL Version 2 or to extend the choice of license to its
  39. licensees as provided above. However, if you add GPL Version 2
  40. code and therefore, elected the GPL Version 2 license, then the
  41. option applies only if the new code is made subject to such
  42. option by the copyright holder.
  43. </xsd:documentation>
  44. </xsd:annotation>
  45. <xsd:annotation>
  46. <xsd:documentation>
  47. <![CDATA[[
  48. This is the XML Schema for the application client 6
  49. deployment descriptor. The deployment descriptor must
  50. be named "META-INF/application-client.xml" in the
  51. application client's jar file. All application client
  52. deployment descriptors must indicate the application
  53. client schema by using the Java EE namespace:
  54. http://java.sun.com/xml/ns/javaee
  55. and indicate the version of the schema by
  56. using the version element as shown below:
  57. <application-client xmlns="http://java.sun.com/xml/ns/javaee"
  58. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  59. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
  60. http://java.sun.com/xml/ns/javaee/application-client_6.xsd"
  61. version="6">
  62. ...
  63. </application-client>
  64. The instance documents may indicate the published version of
  65. the schema using the xsi:schemaLocation attribute for Java EE
  66. namespace with the following location:
  67. http://java.sun.com/xml/ns/javaee/application-client_6.xsd
  68. ]]>
  69. </xsd:documentation>
  70. </xsd:annotation>
  71. <xsd:annotation>
  72. <xsd:documentation>
  73. The following conventions apply to all Java EE
  74. deployment descriptor elements unless indicated otherwise.
  75. - In elements that specify a pathname to a file within the
  76. same JAR file, relative filenames (i.e., those not
  77. starting with "/") are considered relative to the root of
  78. the JAR file's namespace. Absolute filenames (i.e., those
  79. starting with "/") also specify names in the root of the
  80. JAR file's namespace. In general, relative names are
  81. preferred. The exception is .war files where absolute
  82. names are preferred for consistency with the Servlet API.
  83. </xsd:documentation>
  84. </xsd:annotation>
  85. <xsd:include schemaLocation="javaee_6.xsd"/>
  86. <!-- **************************************************** -->
  87. <xsd:element name="application-client"
  88. type="javaee:application-clientType">
  89. <xsd:annotation>
  90. <xsd:documentation>
  91. The application-client element is the root element of an
  92. application client deployment descriptor. The application
  93. client deployment descriptor describes the EJB components
  94. and external resources referenced by the application
  95. client.
  96. </xsd:documentation>
  97. </xsd:annotation>
  98. <xsd:unique name="env-entry-name-uniqueness">
  99. <xsd:annotation>
  100. <xsd:documentation>
  101. The env-entry-name element contains the name of an
  102. application client's environment entry. The name is a JNDI
  103. name relative to the java:comp/env context. The name must
  104. be unique within an application client.
  105. </xsd:documentation>
  106. </xsd:annotation>
  107. <xsd:selector xpath="javaee:env-entry"/>
  108. <xsd:field xpath="javaee:env-entry-name"/>
  109. </xsd:unique>
  110. <xsd:unique name="ejb-ref-name-uniqueness">
  111. <xsd:annotation>
  112. <xsd:documentation>
  113. The ejb-ref-name element contains the name of an EJB
  114. reference. The EJB reference is an entry in the application
  115. client's environment and is relative to the
  116. java:comp/env context. The name must be unique within the
  117. application client.
  118. It is recommended that name is prefixed with "ejb/".
  119. </xsd:documentation>
  120. </xsd:annotation>
  121. <xsd:selector xpath="javaee:ejb-ref"/>
  122. <xsd:field xpath="javaee:ejb-ref-name"/>
  123. </xsd:unique>
  124. <xsd:unique name="res-ref-name-uniqueness">
  125. <xsd:annotation>
  126. <xsd:documentation>
  127. The res-ref-name element specifies the name of a
  128. resource manager connection factory reference.The name
  129. is a JNDI name relative to the java:comp/env context.
  130. The name must be unique within an application client.
  131. </xsd:documentation>
  132. </xsd:annotation>
  133. <xsd:selector xpath="javaee:resource-ref"/>
  134. <xsd:field xpath="javaee:res-ref-name"/>
  135. </xsd:unique>
  136. <xsd:unique name="resource-env-ref-uniqueness">
  137. <xsd:annotation>
  138. <xsd:documentation>
  139. The resource-env-ref-name element specifies the name of
  140. a resource environment reference; its value is the
  141. environment entry name used in the application client
  142. code. The name is a JNDI name relative to the
  143. java:comp/env context and must be unique within an
  144. application client.
  145. </xsd:documentation>
  146. </xsd:annotation>
  147. <xsd:selector xpath="javaee:resource-env-ref"/>
  148. <xsd:field xpath="javaee:resource-env-ref-name"/>
  149. </xsd:unique>
  150. <xsd:unique name="message-destination-ref-uniqueness">
  151. <xsd:annotation>
  152. <xsd:documentation>
  153. The message-destination-ref-name element specifies the
  154. name of a message destination reference; its value is
  155. the message destination reference name used in the
  156. application client code. The name is a JNDI name
  157. relative to the java:comp/env context and must be unique
  158. within an application client.
  159. </xsd:documentation>
  160. </xsd:annotation>
  161. <xsd:selector xpath="javaee:message-destination-ref"/>
  162. <xsd:field xpath="javaee:message-destination-ref-name"/>
  163. </xsd:unique>
  164. </xsd:element>
  165. <!-- **************************************************** -->
  166. <xsd:complexType name="application-clientType">
  167. <xsd:sequence>
  168. <xsd:element name="module-name"
  169. type="javaee:string"
  170. minOccurs="0"/>
  171. <xsd:group ref="javaee:descriptionGroup"/>
  172. <xsd:element name="env-entry"
  173. type="javaee:env-entryType"
  174. minOccurs="0"
  175. maxOccurs="unbounded"/>
  176. <xsd:element name="ejb-ref"
  177. type="javaee:ejb-refType"
  178. minOccurs="0"
  179. maxOccurs="unbounded"/>
  180. <xsd:group ref="javaee:service-refGroup"/>
  181. <xsd:element name="resource-ref"
  182. type="javaee:resource-refType"
  183. minOccurs="0"
  184. maxOccurs="unbounded"/>
  185. <xsd:element name="resource-env-ref"
  186. type="javaee:resource-env-refType"
  187. minOccurs="0"
  188. maxOccurs="unbounded"/>
  189. <xsd:element name="message-destination-ref"
  190. type="javaee:message-destination-refType"
  191. minOccurs="0"
  192. maxOccurs="unbounded"/>
  193. <xsd:element name="persistence-unit-ref"
  194. type="javaee:persistence-unit-refType"
  195. minOccurs="0"
  196. maxOccurs="unbounded"/>
  197. <xsd:element name="post-construct"
  198. type="javaee:lifecycle-callbackType"
  199. minOccurs="0"
  200. maxOccurs="unbounded"/>
  201. <xsd:element name="pre-destroy"
  202. type="javaee:lifecycle-callbackType"
  203. minOccurs="0"
  204. maxOccurs="unbounded"/>
  205. <xsd:element name="callback-handler"
  206. type="javaee:fully-qualified-classType"
  207. minOccurs="0">
  208. <xsd:annotation>
  209. <xsd:documentation>
  210. The callback-handler element names a class provided by
  211. the application. The class must have a no args
  212. constructor and must implement the
  213. javax.security.auth.callback.CallbackHandler
  214. interface. The class will be instantiated by the
  215. application client container and used by the container
  216. to collect authentication information from the user.
  217. </xsd:documentation>
  218. </xsd:annotation>
  219. </xsd:element>
  220. <xsd:element name="message-destination"
  221. type="javaee:message-destinationType"
  222. minOccurs="0"
  223. maxOccurs="unbounded"/>
  224. <xsd:element name="data-source"
  225. type="javaee:data-sourceType"
  226. minOccurs="0"
  227. maxOccurs="unbounded"/>
  228. </xsd:sequence>
  229. <xsd:attribute name="version"
  230. type="javaee:dewey-versionType"
  231. fixed="6"
  232. use="required">
  233. <xsd:annotation>
  234. <xsd:documentation>
  235. The required value for the version is 6.
  236. </xsd:documentation>
  237. </xsd:annotation>
  238. </xsd:attribute>
  239. <xsd:attribute name="metadata-complete"
  240. type="xsd:boolean">
  241. <xsd:annotation>
  242. <xsd:documentation>
  243. The metadata-complete attribute defines whether this
  244. deployment descriptor and other related deployment
  245. descriptors for this module (e.g., web service
  246. descriptors) are complete, or whether the class
  247. files available to this module and packaged with
  248. this application should be examined for annotations
  249. that specify deployment information.
  250. If metadata-complete is set to "true", the deployment
  251. tool must ignore any annotations that specify deployment
  252. information, which might be present in the class files
  253. of the application.
  254. If metadata-complete is not specified or is set to
  255. "false", the deployment tool must examine the class
  256. files of the application for annotations, as
  257. specified by the specifications.
  258. </xsd:documentation>
  259. </xsd:annotation>
  260. </xsd:attribute>
  261. <xsd:attribute name="id"
  262. type="xsd:ID"/>
  263. </xsd:complexType>
  264. </xsd:schema>