ejb-jar_2_1.xsd 69 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207
  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/j2ee"
  4. xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
  5. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  6. elementFormDefault="qualified"
  7. attributeFormDefault="unqualified"
  8. version="2.1">
  9. <xsd:annotation>
  10. <xsd:documentation>
  11. @(#)ejb-jar_2_1.xsds 1.23 08/01/03
  12. </xsd:documentation>
  13. </xsd:annotation>
  14. <xsd:annotation>
  15. <xsd:documentation>
  16. Copyright 2003 Sun Microsystems, Inc., 901 San Antonio
  17. Road, Palo Alto, California 94303, U.S.A. All rights
  18. reserved.
  19. Sun Microsystems, Inc. has intellectual property rights
  20. relating to technology described in this document. In
  21. particular, and without limitation, these intellectual
  22. property rights may include one or more of the U.S. patents
  23. listed at http://www.sun.com/patents and one or more
  24. additional patents or pending patent applications in the
  25. U.S. and other countries.
  26. This document and the technology which it describes are
  27. distributed under licenses restricting their use, copying,
  28. distribution, and decompilation. No part of this document
  29. may be reproduced in any form by any means without prior
  30. written authorization of Sun and its licensors, if any.
  31. Third-party software, including font technology, is
  32. copyrighted and licensed from Sun suppliers.
  33. Sun, Sun Microsystems, the Sun logo, Solaris, Java, J2EE,
  34. JavaServer Pages, Enterprise JavaBeans and the Java Coffee
  35. Cup logo are trademarks or registered trademarks of Sun
  36. Microsystems, Inc. in the U.S. and other countries.
  37. Federal Acquisitions: Commercial Software - Government Users
  38. Subject to Standard License Terms and Conditions.
  39. </xsd:documentation>
  40. </xsd:annotation>
  41. <xsd:annotation>
  42. <xsd:documentation>
  43. <![CDATA[
  44. This is the XML Schema for the EJB 2.1 deployment descriptor.
  45. The deployment descriptor must be named "META-INF/ejb-jar.xml" in
  46. the EJB's jar file. All EJB deployment descriptors must indicate
  47. the ejb-jar schema by using the J2EE namespace:
  48. http://java.sun.com/xml/ns/j2ee
  49. and by indicating the version of the schema by
  50. using the version element as shown below:
  51. <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
  52. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  53. xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
  54. http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
  55. version="2.1">
  56. ...
  57. </ejb-jar>
  58. The instance documents may indicate the published version of
  59. the schema using the xsi:schemaLocation attribute for the
  60. J2EE namespace with the following location:
  61. http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd
  62. ]]>
  63. </xsd:documentation>
  64. </xsd:annotation>
  65. <xsd:annotation>
  66. <xsd:documentation>
  67. The following conventions apply to all J2EE
  68. deployment descriptor elements unless indicated otherwise.
  69. - In elements that specify a pathname to a file within the
  70. same JAR file, relative filenames (i.e., those not
  71. starting with "/") are considered relative to the root of
  72. the JAR file's namespace. Absolute filenames (i.e., those
  73. starting with "/") also specify names in the root of the
  74. JAR file's namespace. In general, relative names are
  75. preferred. The exception is .war files where absolute
  76. names are preferred for consistency with the Servlet API.
  77. </xsd:documentation>
  78. </xsd:annotation>
  79. <xsd:include schemaLocation="j2ee_1_4.xsd"/>
  80. <!-- **************************************************** -->
  81. <xsd:element name="ejb-jar" type="j2ee:ejb-jarType">
  82. <xsd:annotation>
  83. <xsd:documentation>
  84. This is the root of the ejb-jar deployment descriptor.
  85. </xsd:documentation>
  86. </xsd:annotation>
  87. <xsd:key name="ejb-name-key">
  88. <xsd:annotation>
  89. <xsd:documentation>
  90. The ejb-name element contains the name of an enterprise
  91. bean. The name must be unique within the ejb-jar file.
  92. </xsd:documentation>
  93. </xsd:annotation>
  94. <xsd:selector xpath="j2ee:enterprise-beans/*"/>
  95. <xsd:field xpath="j2ee:ejb-name"/>
  96. </xsd:key>
  97. <xsd:keyref name="ejb-name-references"
  98. refer="j2ee:ejb-name-key">
  99. <xsd:annotation>
  100. <xsd:documentation>
  101. The keyref indicates the references from
  102. relationship-role-source must be to a specific ejb-name
  103. defined within the scope of enterprise-beans element.
  104. </xsd:documentation>
  105. </xsd:annotation>
  106. <xsd:selector
  107. xpath=".//j2ee:ejb-relationship-role/j2ee:relationship-role-source"/>
  108. <xsd:field
  109. xpath="j2ee:ejb-name"/>
  110. </xsd:keyref>
  111. <xsd:key name="role-name-key">
  112. <xsd:annotation>
  113. <xsd:documentation>
  114. A role-name-key is specified to allow the references
  115. from the security-role-refs.
  116. </xsd:documentation>
  117. </xsd:annotation>
  118. <xsd:selector xpath="j2ee:assembly-descriptor/j2ee:security-role"/>
  119. <xsd:field xpath="j2ee:role-name"/>
  120. </xsd:key>
  121. <xsd:keyref name="role-name-references"
  122. refer="j2ee:role-name-key">
  123. <xsd:annotation>
  124. <xsd:documentation>
  125. The keyref indicates the references from
  126. security-role-ref to a specified role-name.
  127. </xsd:documentation>
  128. </xsd:annotation>
  129. <xsd:selector xpath="j2ee:enterprise-beans/*/j2ee:security-role-ref"/>
  130. <xsd:field xpath="j2ee:role-link"/>
  131. </xsd:keyref>
  132. </xsd:element>
  133. <!-- **************************************************** -->
  134. <xsd:complexType name="activation-config-propertyType">
  135. <xsd:annotation>
  136. <xsd:documentation>
  137. The activation-config-propertyType contains a name/value
  138. configuration property pair for a message-driven bean.
  139. The properties that are recognized for a particular
  140. message-driven bean are determined by the messaging type.
  141. </xsd:documentation>
  142. </xsd:annotation>
  143. <xsd:sequence>
  144. <xsd:element name="activation-config-property-name"
  145. type="j2ee:xsdStringType">
  146. <xsd:annotation>
  147. <xsd:documentation>
  148. The activation-config-property-name element contains
  149. the name for an activation configuration property of
  150. a message-driven bean.
  151. For JMS message-driven beans, the following property
  152. names are recognized: acknowledgeMode,
  153. messageSelector, destinationType, subscriptionDurability
  154. </xsd:documentation>
  155. </xsd:annotation>
  156. </xsd:element>
  157. <xsd:element name="activation-config-property-value"
  158. type="j2ee:xsdStringType">
  159. <xsd:annotation>
  160. <xsd:documentation>
  161. The activation-config-property-value element
  162. contains the value for an activation configuration
  163. property of a message-driven bean.
  164. </xsd:documentation>
  165. </xsd:annotation>
  166. </xsd:element>
  167. </xsd:sequence>
  168. <xsd:attribute name="id" type="xsd:ID"/>
  169. </xsd:complexType>
  170. <!-- **************************************************** -->
  171. <xsd:complexType name="activation-configType">
  172. <xsd:annotation>
  173. <xsd:documentation>
  174. The activation-configType defines information about the
  175. expected configuration properties of the message-driven bean
  176. in its operational environment. This may include information
  177. about message acknowledgement, message selector, expected
  178. destination type, etc.
  179. The configuration information is expressed in terms of
  180. name/value configuration properties.
  181. The properties that are recognized for a particular
  182. message-driven bean are determined by the messaging type.
  183. </xsd:documentation>
  184. </xsd:annotation>
  185. <xsd:sequence>
  186. <xsd:element name="description"
  187. type="j2ee:descriptionType"
  188. minOccurs="0"
  189. maxOccurs="unbounded"/>
  190. <xsd:element name="activation-config-property"
  191. type="j2ee:activation-config-propertyType"
  192. maxOccurs="unbounded"/>
  193. </xsd:sequence>
  194. <xsd:attribute name="id" type="xsd:ID"/>
  195. </xsd:complexType>
  196. <!-- **************************************************** -->
  197. <xsd:complexType name="assembly-descriptorType">
  198. <xsd:annotation>
  199. <xsd:documentation>
  200. The assembly-descriptorType defines
  201. application-assembly information.
  202. The application-assembly information consists of the
  203. following parts: the definition of security roles, the
  204. definition of method permissions, the definition of
  205. transaction attributes for enterprise beans with
  206. container-managed transaction demarcation and a list of
  207. methods to be excluded from being invoked.
  208. All the parts are optional in the sense that they are
  209. omitted if the lists represented by them are empty.
  210. Providing an assembly-descriptor in the deployment
  211. descriptor is optional for the ejb-jar file producer.
  212. </xsd:documentation>
  213. </xsd:annotation>
  214. <xsd:sequence>
  215. <xsd:element name="security-role"
  216. type="j2ee:security-roleType"
  217. minOccurs="0"
  218. maxOccurs="unbounded"/>
  219. <xsd:element name="method-permission"
  220. type="j2ee:method-permissionType"
  221. minOccurs="0"
  222. maxOccurs="unbounded"/>
  223. <xsd:element name="container-transaction"
  224. type="j2ee:container-transactionType"
  225. minOccurs="0"
  226. maxOccurs="unbounded"/>
  227. <xsd:element name="message-destination"
  228. type="j2ee:message-destinationType"
  229. minOccurs="0"
  230. maxOccurs="unbounded"/>
  231. <xsd:element name="exclude-list"
  232. type="j2ee:exclude-listType"
  233. minOccurs="0"/>
  234. </xsd:sequence>
  235. <xsd:attribute name="id" type="xsd:ID"/>
  236. </xsd:complexType>
  237. <!-- **************************************************** -->
  238. <xsd:complexType name="cmp-fieldType">
  239. <xsd:annotation>
  240. <xsd:documentation>
  241. The cmp-fieldType describes a container-managed field. The
  242. cmp-fieldType contains an optional description of the field,
  243. and the name of the field.
  244. </xsd:documentation>
  245. </xsd:annotation>
  246. <xsd:sequence>
  247. <xsd:element name="description"
  248. type="j2ee:descriptionType"
  249. minOccurs="0"
  250. maxOccurs="unbounded"/>
  251. <xsd:element name="field-name"
  252. type="j2ee:java-identifierType">
  253. <xsd:annotation>
  254. <xsd:documentation>
  255. The field-name element specifies the name of a
  256. container managed field.
  257. The name of the cmp-field of an entity bean with
  258. cmp-version 2.x must begin with a lowercase
  259. letter. This field is accessed by methods whose
  260. names consists of the name of the field specified by
  261. field-name in which the first letter is uppercased,
  262. prefixed by "get" or "set".
  263. The name of the cmp-field of an entity bean with
  264. cmp-version 1.x must denote a public field of the
  265. enterprise bean class or one of its superclasses.
  266. </xsd:documentation>
  267. </xsd:annotation>
  268. </xsd:element>
  269. </xsd:sequence>
  270. <xsd:attribute name="id" type="xsd:ID"/>
  271. </xsd:complexType>
  272. <!-- **************************************************** -->
  273. <xsd:complexType name="cmp-versionType">
  274. <xsd:annotation>
  275. <xsd:documentation>
  276. The cmp-versionType specifies the version of an entity bean
  277. with container-managed persistence. It is used by
  278. cmp-version elements.
  279. The value must be one of the two following:
  280. 1.x
  281. 2.x
  282. </xsd:documentation>
  283. </xsd:annotation>
  284. <xsd:simpleContent>
  285. <xsd:restriction base="j2ee:string">
  286. <xsd:enumeration value="1.x"/>
  287. <xsd:enumeration value="2.x"/>
  288. </xsd:restriction>
  289. </xsd:simpleContent>
  290. </xsd:complexType>
  291. <!-- **************************************************** -->
  292. <xsd:complexType name="cmr-field-typeType">
  293. <xsd:annotation>
  294. <xsd:documentation>
  295. The cmr-field-type element specifies the class of a
  296. collection-valued logical relationship field in the entity
  297. bean class. The value of an element using cmr-field-typeType
  298. must be either: java.util.Collection or java.util.Set.
  299. </xsd:documentation>
  300. </xsd:annotation>
  301. <xsd:simpleContent>
  302. <xsd:restriction base="j2ee:string">
  303. <xsd:enumeration value="java.util.Collection"/>
  304. <xsd:enumeration value="java.util.Set"/>
  305. </xsd:restriction>
  306. </xsd:simpleContent>
  307. </xsd:complexType>
  308. <!-- **************************************************** -->
  309. <xsd:complexType name="cmr-fieldType">
  310. <xsd:annotation>
  311. <xsd:documentation>
  312. The cmr-fieldType describes the bean provider's view of
  313. a relationship. It consists of an optional description, and
  314. the name and the class type of a field in the source of a
  315. role of a relationship. The cmr-field-name element
  316. corresponds to the name used for the get and set accessor
  317. methods for the relationship. The cmr-field-type element is
  318. used only for collection-valued cmr-fields. It specifies the
  319. type of the collection that is used.
  320. </xsd:documentation>
  321. </xsd:annotation>
  322. <xsd:sequence>
  323. <xsd:element name="description"
  324. type="j2ee:descriptionType"
  325. minOccurs="0"
  326. maxOccurs="unbounded"/>
  327. <xsd:element name="cmr-field-name"
  328. type="j2ee:string">
  329. <xsd:annotation>
  330. <xsd:documentation>
  331. The cmr-field-name element specifies the name of a
  332. logical relationship field in the entity bean
  333. class. The name of the cmr-field must begin with a
  334. lowercase letter. This field is accessed by methods
  335. whose names consist of the name of the field
  336. specified by cmr-field-name in which the first
  337. letter is uppercased, prefixed by "get" or "set".
  338. </xsd:documentation>
  339. </xsd:annotation>
  340. </xsd:element>
  341. <xsd:element name="cmr-field-type"
  342. type="j2ee:cmr-field-typeType"
  343. minOccurs="0"/>
  344. </xsd:sequence>
  345. <xsd:attribute name="id" type="xsd:ID"/>
  346. </xsd:complexType>
  347. <!-- **************************************************** -->
  348. <xsd:complexType name="container-transactionType">
  349. <xsd:annotation>
  350. <xsd:documentation>
  351. The container-transactionType specifies how the container
  352. must manage transaction scopes for the enterprise bean's
  353. method invocations. It defines an optional description, a
  354. list of method elements, and a transaction attribute. The
  355. transaction attribute is to be applied to all the specified
  356. methods.
  357. </xsd:documentation>
  358. </xsd:annotation>
  359. <xsd:sequence>
  360. <xsd:element name="description"
  361. type="j2ee:descriptionType"
  362. minOccurs="0"
  363. maxOccurs="unbounded"/>
  364. <xsd:element name="method"
  365. type="j2ee:methodType"
  366. maxOccurs="unbounded"/>
  367. <xsd:element name="trans-attribute"
  368. type="j2ee:trans-attributeType"/>
  369. </xsd:sequence>
  370. <xsd:attribute name="id" type="xsd:ID"/>
  371. </xsd:complexType>
  372. <!-- **************************************************** -->
  373. <xsd:complexType name="ejb-classType">
  374. <xsd:annotation>
  375. <xsd:documentation>
  376. <![CDATA[
  377. The ejb-classType contains the fully-qualified name of the
  378. enterprise bean's class. It is used by ejb-class elements.
  379. Example:
  380. <ejb-class>com.wombat.empl.EmployeeServiceBean</ejb-class>
  381. ]]>
  382. </xsd:documentation>
  383. </xsd:annotation>
  384. <xsd:simpleContent>
  385. <xsd:restriction base="j2ee:fully-qualified-classType"/>
  386. </xsd:simpleContent>
  387. </xsd:complexType>
  388. <!-- **************************************************** -->
  389. <xsd:complexType name="ejb-jarType">
  390. <xsd:annotation>
  391. <xsd:documentation>
  392. The ejb-jarType defines the root element of the EJB
  393. deployment descriptor. It contains
  394. - an optional description of the ejb-jar file
  395. - an optional display name
  396. - an optional icon that contains a small and a large
  397. icon file name
  398. - mandatory structural information about all included
  399. enterprise beans
  400. - a descriptor for container managed relationships,
  401. if any
  402. - an optional application-assembly descriptor
  403. - an optional name of an ejb-client-jar file for the
  404. ejb-jar.
  405. </xsd:documentation>
  406. </xsd:annotation>
  407. <xsd:sequence>
  408. <xsd:group ref="j2ee:descriptionGroup"/>
  409. <xsd:element name="enterprise-beans"
  410. type="j2ee:enterprise-beansType"/>
  411. <xsd:element name="relationships"
  412. type="j2ee:relationshipsType"
  413. minOccurs="0">
  414. <xsd:unique name="relationship-name-uniqueness">
  415. <xsd:annotation>
  416. <xsd:documentation>
  417. The ejb-relation-name contains the name of a
  418. relation. The name must be unique within
  419. relationships.
  420. </xsd:documentation>
  421. </xsd:annotation>
  422. <xsd:selector xpath="j2ee:ejb-relation"/>
  423. <xsd:field xpath="j2ee:ejb-relation-name"/>
  424. </xsd:unique>
  425. </xsd:element>
  426. <xsd:element name="assembly-descriptor"
  427. type="j2ee:assembly-descriptorType"
  428. minOccurs="0">
  429. <xsd:annotation>
  430. <xsd:documentation>
  431. Providing an assembly-descriptor in the deployment
  432. descriptor is optional for the ejb-jar file
  433. producer.
  434. </xsd:documentation>
  435. </xsd:annotation>
  436. </xsd:element>
  437. <xsd:element name="ejb-client-jar"
  438. type="j2ee:pathType"
  439. minOccurs="0">
  440. <xsd:annotation>
  441. <xsd:documentation>
  442. <![CDATA[
  443. The optional ejb-client-jar element specifies a JAR
  444. file that contains the class files necessary for a
  445. client program to access the
  446. enterprise beans in the ejb-jar file.
  447. Example:
  448. <ejb-client-jar>employee_service_client.jar
  449. </ejb-client-jar>
  450. ]]>
  451. </xsd:documentation>
  452. </xsd:annotation>
  453. </xsd:element>
  454. </xsd:sequence>
  455. <xsd:attribute name="version"
  456. type="j2ee:dewey-versionType"
  457. fixed="2.1"
  458. use="required">
  459. <xsd:annotation>
  460. <xsd:documentation>
  461. The version specifies the version of the
  462. EJB specification that the instance document must
  463. comply with. This information enables deployment tools
  464. to validate a particular EJB Deployment
  465. Descriptor with respect to a specific version of the EJB
  466. schema.
  467. </xsd:documentation>
  468. </xsd:annotation>
  469. </xsd:attribute>
  470. <xsd:attribute name="id" type="xsd:ID"/>
  471. </xsd:complexType>
  472. <!-- **************************************************** -->
  473. <xsd:complexType name="ejb-nameType">
  474. <xsd:annotation>
  475. <xsd:documentation>
  476. <![CDATA[
  477. The ejb-nameType specifies an enterprise bean's name. It is
  478. used by ejb-name elements. This name is assigned by the
  479. ejb-jar file producer to name the enterprise bean in the
  480. ejb-jar file's deployment descriptor. The name must be
  481. unique among the names of the enterprise beans in the same
  482. ejb-jar file.
  483. There is no architected relationship between the used
  484. ejb-name in the deployment descriptor and the JNDI name that
  485. the Deployer will assign to the enterprise bean's home.
  486. The name for an entity bean must conform to the lexical
  487. rules for an NMTOKEN.
  488. Example:
  489. <ejb-name>EmployeeService</ejb-name>
  490. ]]>
  491. </xsd:documentation>
  492. </xsd:annotation>
  493. <xsd:simpleContent>
  494. <xsd:restriction base="j2ee:xsdNMTOKENType"/>
  495. </xsd:simpleContent>
  496. </xsd:complexType>
  497. <!-- **************************************************** -->
  498. <xsd:complexType name="ejb-relationType">
  499. <xsd:annotation>
  500. <xsd:documentation>
  501. The ejb-relationType describes a relationship between two
  502. entity beans with container-managed persistence. It is used
  503. by ejb-relation elements. It contains a description; an
  504. optional ejb-relation-name element; and exactly two
  505. relationship role declarations, defined by the
  506. ejb-relationship-role elements. The name of the
  507. relationship, if specified, is unique within the ejb-jar
  508. file.
  509. </xsd:documentation>
  510. </xsd:annotation>
  511. <xsd:sequence>
  512. <xsd:element name="description"
  513. type="j2ee:descriptionType"
  514. minOccurs="0"
  515. maxOccurs="unbounded"/>
  516. <xsd:element name="ejb-relation-name"
  517. type="j2ee:string"
  518. minOccurs="0">
  519. <xsd:annotation>
  520. <xsd:documentation>
  521. The ejb-relation-name element provides a unique name
  522. within the ejb-jar file for a relationship.
  523. </xsd:documentation>
  524. </xsd:annotation>
  525. </xsd:element>
  526. <xsd:element name="ejb-relationship-role"
  527. type="j2ee:ejb-relationship-roleType"/>
  528. <xsd:element name="ejb-relationship-role"
  529. type="j2ee:ejb-relationship-roleType"/>
  530. </xsd:sequence>
  531. <xsd:attribute name="id" type="xsd:ID"/>
  532. </xsd:complexType>
  533. <!-- **************************************************** -->
  534. <xsd:complexType name="ejb-relationship-roleType">
  535. <xsd:annotation>
  536. <xsd:documentation>
  537. <![CDATA[
  538. The ejb-relationship-roleType describes a role within a
  539. relationship. There are two roles in each relationship.
  540. The ejb-relationship-roleType contains an optional
  541. description; an optional name for the relationship role; a
  542. specification of the multiplicity of the role; an optional
  543. specification of cascade-delete functionality for the role;
  544. the role source; and a declaration of the cmr-field, if any,
  545. by means of which the other side of the relationship is
  546. accessed from the perspective of the role source.
  547. The multiplicity and role-source element are mandatory.
  548. The relationship-role-source element designates an entity
  549. bean by means of an ejb-name element. For bidirectional
  550. relationships, both roles of a relationship must declare a
  551. relationship-role-source element that specifies a cmr-field
  552. in terms of which the relationship is accessed. The lack of
  553. a cmr-field element in an ejb-relationship-role specifies
  554. that the relationship is unidirectional in navigability and
  555. the entity bean that participates in the relationship is
  556. "not aware" of the relationship.
  557. Example:
  558. <ejb-relation>
  559. <ejb-relation-name>Product-LineItem</ejb-relation-name>
  560. <ejb-relationship-role>
  561. <ejb-relationship-role-name>product-has-lineitems
  562. </ejb-relationship-role-name>
  563. <multiplicity>One</multiplicity>
  564. <relationship-role-source>
  565. <ejb-name>ProductEJB</ejb-name>
  566. </relationship-role-source>
  567. </ejb-relationship-role>
  568. </ejb-relation>
  569. ]]>
  570. </xsd:documentation>
  571. </xsd:annotation>
  572. <xsd:sequence>
  573. <xsd:element name="description"
  574. type="j2ee:descriptionType"
  575. minOccurs="0"
  576. maxOccurs="unbounded"/>
  577. <xsd:element name="ejb-relationship-role-name"
  578. type="j2ee:string"
  579. minOccurs="0">
  580. <xsd:annotation>
  581. <xsd:documentation>
  582. The ejb-relationship-role-name element defines a
  583. name for a role that is unique within an
  584. ejb-relation. Different relationships can use the
  585. same name for a role.
  586. </xsd:documentation>
  587. </xsd:annotation>
  588. </xsd:element>
  589. <xsd:element name="multiplicity"
  590. type="j2ee:multiplicityType"/>
  591. <xsd:element name="cascade-delete"
  592. type="j2ee:emptyType"
  593. minOccurs="0">
  594. <xsd:annotation>
  595. <xsd:documentation>
  596. The cascade-delete element specifies that, within a
  597. particular relationship, the lifetime of one or more
  598. entity beans is dependent upon the lifetime of
  599. another entity bean. The cascade-delete element can
  600. only be specified for an ejb-relationship-role
  601. element contained in an ejb-relation element in
  602. which the other ejb-relationship-role
  603. element specifies a multiplicity of One.
  604. </xsd:documentation>
  605. </xsd:annotation>
  606. </xsd:element>
  607. <xsd:element name="relationship-role-source"
  608. type="j2ee:relationship-role-sourceType"/>
  609. <xsd:element name="cmr-field"
  610. type="j2ee:cmr-fieldType"
  611. minOccurs="0"/>
  612. </xsd:sequence>
  613. <xsd:attribute name="id" type="xsd:ID"/>
  614. </xsd:complexType>
  615. <!-- **************************************************** -->
  616. <xsd:complexType name="enterprise-beansType">
  617. <xsd:annotation>
  618. <xsd:documentation>
  619. The enterprise-beansType declares one or more enterprise
  620. beans. Each bean can be a session, entity or message-driven
  621. bean.
  622. </xsd:documentation>
  623. </xsd:annotation>
  624. <xsd:choice maxOccurs="unbounded">
  625. <xsd:element name="session"
  626. type="j2ee:session-beanType">
  627. <xsd:unique name="session-ejb-local-ref-name-uniqueness">
  628. <xsd:annotation>
  629. <xsd:documentation>
  630. The ejb-ref-name element contains the name of
  631. an EJB reference. The EJB reference is an entry in
  632. the component's environment and is relative to the
  633. java:comp/env context. The name must be unique within
  634. the component.
  635. It is recommended that name be prefixed with "ejb/".
  636. </xsd:documentation>
  637. </xsd:annotation>
  638. <xsd:selector xpath="j2ee:ejb-local-ref"/>
  639. <xsd:field xpath="j2ee:ejb-ref-name"/>
  640. </xsd:unique>
  641. <xsd:unique name="session-ejb-ref-name-uniqueness">
  642. <xsd:annotation>
  643. <xsd:documentation>
  644. The ejb-ref-name element contains the name of an EJB
  645. reference. The EJB reference is an entry in the
  646. component's environment and is relative to the
  647. java:comp/env context. The name must be unique
  648. within the component.
  649. It is recommended that name is prefixed with "ejb/".
  650. </xsd:documentation>
  651. </xsd:annotation>
  652. <xsd:selector xpath="j2ee:ejb-ref"/>
  653. <xsd:field xpath="j2ee:ejb-ref-name"/>
  654. </xsd:unique>
  655. <xsd:unique name="session-resource-env-ref-uniqueness">
  656. <xsd:annotation>
  657. <xsd:documentation>
  658. The resource-env-ref-name element specifies the name
  659. of a resource environment reference; its value is
  660. the environment entry name used in the component
  661. code. The name is a JNDI name relative to the
  662. java:comp/env context and must be unique within an
  663. component.
  664. </xsd:documentation>
  665. </xsd:annotation>
  666. <xsd:selector xpath="j2ee:resource-env-ref"/>
  667. <xsd:field xpath="j2ee:resource-env-ref-name"/>
  668. </xsd:unique>
  669. <xsd:unique name="session-message-destination-ref-uniqueness">
  670. <xsd:annotation>
  671. <xsd:documentation>
  672. The message-destination-ref-name element specifies the name
  673. of a message destination reference; its value is
  674. the message destination reference name used in the component
  675. code. The name is a JNDI name relative to the
  676. java:comp/env context and must be unique within an
  677. component.
  678. </xsd:documentation>
  679. </xsd:annotation>
  680. <xsd:selector xpath="j2ee:message-destination-ref"/>
  681. <xsd:field xpath="j2ee:message-destination-ref-name"/>
  682. </xsd:unique>
  683. <xsd:unique name="session-res-ref-name-uniqueness">
  684. <xsd:annotation>
  685. <xsd:documentation>
  686. The res-ref-name element specifies the name of a
  687. resource manager connection factory reference. The name
  688. is a JNDI name relative to the java:comp/env context.
  689. The name must be unique within an component.
  690. </xsd:documentation>
  691. </xsd:annotation>
  692. <xsd:selector xpath="j2ee:resource-ref"/>
  693. <xsd:field xpath="j2ee:res-ref-name"/>
  694. </xsd:unique>
  695. <xsd:unique name="session-env-entry-name-uniqueness">
  696. <xsd:annotation>
  697. <xsd:documentation>
  698. The env-entry-name element contains the name of a
  699. component's environment entry. The name is a JNDI
  700. name relative to the java:comp/env context. The
  701. name must be unique within an component.
  702. </xsd:documentation>
  703. </xsd:annotation>
  704. <xsd:selector xpath="j2ee:env-entry"/>
  705. <xsd:field xpath="j2ee:env-entry-name"/>
  706. </xsd:unique>
  707. </xsd:element>
  708. <xsd:element name="entity"
  709. type="j2ee:entity-beanType">
  710. <xsd:unique name="entity-ejb-local-ref-name-uniqueness">
  711. <xsd:annotation>
  712. <xsd:documentation>
  713. The ejb-ref-name element contains the name of
  714. an EJB reference. The EJB reference is an entry in
  715. the component's environment and is relative to the
  716. java:comp/env context. The name must be unique within
  717. the component.
  718. It is recommended that name be prefixed with "ejb/".
  719. </xsd:documentation>
  720. </xsd:annotation>
  721. <xsd:selector xpath="j2ee:ejb-local-ref"/>
  722. <xsd:field xpath="j2ee:ejb-ref-name"/>
  723. </xsd:unique>
  724. <xsd:unique name="entity-ejb-ref-name-uniqueness">
  725. <xsd:annotation>
  726. <xsd:documentation>
  727. The ejb-ref-name element contains the name of an EJB
  728. reference. The EJB reference is an entry in the
  729. component's environment and is relative to the
  730. java:comp/env context. The name must be unique
  731. within the component.
  732. It is recommended that name is prefixed with "ejb/".
  733. </xsd:documentation>
  734. </xsd:annotation>
  735. <xsd:selector xpath="j2ee:ejb-ref"/>
  736. <xsd:field xpath="j2ee:ejb-ref-name"/>
  737. </xsd:unique>
  738. <xsd:unique name="entity-resource-env-ref-uniqueness">
  739. <xsd:annotation>
  740. <xsd:documentation>
  741. The resource-env-ref-name element specifies the name
  742. of a resource environment reference; its value is
  743. the environment entry name used in the component
  744. code. The name is a JNDI name relative to the
  745. java:comp/env context and must be unique within an
  746. component.
  747. </xsd:documentation>
  748. </xsd:annotation>
  749. <xsd:selector xpath="j2ee:resource-env-ref"/>
  750. <xsd:field xpath="j2ee:resource-env-ref-name"/>
  751. </xsd:unique>
  752. <xsd:unique name="entity-message-destination-ref-uniqueness">
  753. <xsd:annotation>
  754. <xsd:documentation>
  755. The message-destination-ref-name element specifies the name
  756. of a message destination reference; its value is
  757. the message destination reference name used in the component
  758. code. The name is a JNDI name relative to the
  759. java:comp/env context and must be unique within an
  760. component.
  761. </xsd:documentation>
  762. </xsd:annotation>
  763. <xsd:selector xpath="j2ee:message-destination-ref"/>
  764. <xsd:field xpath="j2ee:message-destination-ref-name"/>
  765. </xsd:unique>
  766. <xsd:unique name="entity-res-ref-name-uniqueness">
  767. <xsd:annotation>
  768. <xsd:documentation>
  769. The res-ref-name element specifies the name of a
  770. resource manager connection factory reference. The name
  771. is a JNDI name relative to the java:comp/env context.
  772. The name must be unique within an component.
  773. </xsd:documentation>
  774. </xsd:annotation>
  775. <xsd:selector xpath="j2ee:resource-ref"/>
  776. <xsd:field xpath="j2ee:res-ref-name"/>
  777. </xsd:unique>
  778. <xsd:unique name="entity-env-entry-name-uniqueness">
  779. <xsd:annotation>
  780. <xsd:documentation>
  781. The env-entry-name element contains the name of a
  782. component's environment entry. The name is a JNDI
  783. name relative to the java:comp/env context. The
  784. name must be unique within an component.
  785. </xsd:documentation>
  786. </xsd:annotation>
  787. <xsd:selector xpath="j2ee:env-entry"/>
  788. <xsd:field xpath="j2ee:env-entry-name"/>
  789. </xsd:unique>
  790. </xsd:element>
  791. <xsd:element name="message-driven"
  792. type="j2ee:message-driven-beanType">
  793. <xsd:unique name="messaged-ejb-local-ref-name-uniqueness">
  794. <xsd:annotation>
  795. <xsd:documentation>
  796. The ejb-ref-name element contains the name of
  797. an EJB reference. The EJB reference is an entry in
  798. the component's environment and is relative to the
  799. java:comp/env context. The name must be unique within
  800. the component.
  801. It is recommended that name be prefixed with "ejb/".
  802. </xsd:documentation>
  803. </xsd:annotation>
  804. <xsd:selector xpath="j2ee:ejb-local-ref"/>
  805. <xsd:field xpath="j2ee:ejb-ref-name"/>
  806. </xsd:unique>
  807. <xsd:unique name="messaged-ejb-ref-name-uniqueness">
  808. <xsd:annotation>
  809. <xsd:documentation>
  810. The ejb-ref-name element contains the name of an EJB
  811. reference. The EJB reference is an entry in the
  812. component's environment and is relative to the
  813. java:comp/env context. The name must be unique
  814. within the component.
  815. It is recommended that name is prefixed with "ejb/".
  816. </xsd:documentation>
  817. </xsd:annotation>
  818. <xsd:selector xpath="j2ee:ejb-ref"/>
  819. <xsd:field xpath="j2ee:ejb-ref-name"/>
  820. </xsd:unique>
  821. <xsd:unique name="messaged-resource-env-ref-uniqueness">
  822. <xsd:annotation>
  823. <xsd:documentation>
  824. The resource-env-ref-name element specifies the name
  825. of a resource environment reference; its value is
  826. the environment entry name used in the component
  827. code. The name is a JNDI name relative to the
  828. java:comp/env context and must be unique within an
  829. component.
  830. </xsd:documentation>
  831. </xsd:annotation>
  832. <xsd:selector xpath="j2ee:resource-env-ref"/>
  833. <xsd:field xpath="j2ee:resource-env-ref-name"/>
  834. </xsd:unique>
  835. <xsd:unique name="messaged-message-destination-ref-uniqueness">
  836. <xsd:annotation>
  837. <xsd:documentation>
  838. The message-destination-ref-name element specifies the name
  839. of a message destination reference; its value is
  840. the message destination reference name used in the component
  841. code. The name is a JNDI name relative to the
  842. java:comp/env context and must be unique within an
  843. component.
  844. </xsd:documentation>
  845. </xsd:annotation>
  846. <xsd:selector xpath="j2ee:message-destination-ref"/>
  847. <xsd:field xpath="j2ee:message-destination-ref-name"/>
  848. </xsd:unique>
  849. <xsd:unique name="messaged-res-ref-name-uniqueness">
  850. <xsd:annotation>
  851. <xsd:documentation>
  852. The res-ref-name element specifies the name of a
  853. resource manager connection factory reference. The name
  854. is a JNDI name relative to the java:comp/env context.
  855. The name must be unique within an component.
  856. </xsd:documentation>
  857. </xsd:annotation>
  858. <xsd:selector xpath="j2ee:resource-ref"/>
  859. <xsd:field xpath="j2ee:res-ref-name"/>
  860. </xsd:unique>
  861. <xsd:unique name="messaged-env-entry-name-uniqueness">
  862. <xsd:annotation>
  863. <xsd:documentation>
  864. The env-entry-name element contains the name of a
  865. component's environment entry. The name is a JNDI
  866. name relative to the java:comp/env context. The
  867. name must be unique within an component.
  868. </xsd:documentation>
  869. </xsd:annotation>
  870. <xsd:selector xpath="j2ee:env-entry"/>
  871. <xsd:field xpath="j2ee:env-entry-name"/>
  872. </xsd:unique>
  873. </xsd:element>
  874. </xsd:choice>
  875. <xsd:attribute name="id" type="xsd:ID"/>
  876. </xsd:complexType>
  877. <!-- **************************************************** -->
  878. <xsd:complexType name="entity-beanType">
  879. <xsd:annotation>
  880. <xsd:documentation>
  881. The entity-beanType declares an entity bean. The declaration
  882. consists of:
  883. - an optional description
  884. - an optional display name
  885. - an optional icon element that contains a small and a large
  886. icon file name
  887. - a unique name assigned to the enterprise bean
  888. in the deployment descriptor
  889. - the names of the entity bean's remote home
  890. and remote interfaces, if any
  891. - the names of the entity bean's local home and local
  892. interfaces, if any
  893. - the entity bean's implementation class
  894. - the entity bean's persistence management type
  895. - the entity bean's primary key class name
  896. - an indication of the entity bean's reentrancy
  897. - an optional specification of the
  898. entity bean's cmp-version
  899. - an optional specification of the entity bean's
  900. abstract schema name
  901. - an optional list of container-managed fields
  902. - an optional specification of the primary key
  903. field
  904. - an optional declaration of the bean's environment
  905. entries
  906. - an optional declaration of the bean's EJB
  907. references
  908. - an optional declaration of the bean's local
  909. EJB references
  910. - an optional declaration of the bean's web
  911. service references
  912. - an optional declaration of the security role
  913. references
  914. - an optional declaration of the security identity
  915. to be used for the execution of the bean's methods
  916. - an optional declaration of the bean's
  917. resource manager connection factory references
  918. - an optional declaration of the bean's
  919. resource environment references
  920. - an optional declaration of the bean's message
  921. destination references
  922. - an optional set of query declarations
  923. for finder and select methods for an entity
  924. bean with cmp-version 2.x.
  925. The optional abstract-schema-name element must be specified
  926. for an entity bean with container-managed persistence and
  927. cmp-version 2.x.
  928. The optional primkey-field may be present in the descriptor
  929. if the entity's persistence-type is Container.
  930. The optional cmp-version element may be present in the
  931. descriptor if the entity's persistence-type is Container. If
  932. the persistence-type is Container and the cmp-version
  933. element is not specified, its value defaults to 2.x.
  934. The optional home and remote elements must be specified if
  935. the entity bean cmp-version is 1.x.
  936. The optional home and remote elements must be specified if
  937. the entity bean has a remote home and remote interface.
  938. The optional local-home and local elements must be specified
  939. if the entity bean has a local home and local interface.
  940. Either both the local-home and the local elements or both
  941. the home and the remote elements must be specified.
  942. The optional query elements must be present if the
  943. persistence-type is Container and the cmp-version is 2.x and
  944. query methods other than findByPrimaryKey have been defined
  945. for the entity bean.
  946. The other elements that are optional are "optional" in the
  947. sense that they are omitted if the lists represented by them
  948. are empty.
  949. At least one cmp-field element must be present in the
  950. descriptor if the entity's persistence-type is Container and
  951. the cmp-version is 1.x, and none must not be present if the
  952. entity's persistence-type is Bean.
  953. </xsd:documentation>
  954. </xsd:annotation>
  955. <xsd:sequence>
  956. <xsd:group ref="j2ee:descriptionGroup"/>
  957. <xsd:element name="ejb-name"
  958. type="j2ee:ejb-nameType"/>
  959. <xsd:element name="home"
  960. type="j2ee:homeType"
  961. minOccurs="0"/>
  962. <xsd:element name="remote"
  963. type="j2ee:remoteType"
  964. minOccurs="0"/>
  965. <xsd:element name="local-home"
  966. type="j2ee:local-homeType"
  967. minOccurs="0"/>
  968. <xsd:element name="local"
  969. type="j2ee:localType"
  970. minOccurs="0"/>
  971. <xsd:element name="ejb-class"
  972. type="j2ee:ejb-classType"/>
  973. <xsd:element name="persistence-type"
  974. type="j2ee:persistence-typeType"/>
  975. <xsd:element name="prim-key-class"
  976. type="j2ee:fully-qualified-classType">
  977. <xsd:annotation>
  978. <xsd:documentation>
  979. The prim-key-class element contains the
  980. fully-qualified name of an
  981. entity bean's primary key class.
  982. If the definition of the primary key class is
  983. deferred to deployment time, the prim-key-class
  984. element should specify java.lang.Object.
  985. </xsd:documentation>
  986. </xsd:annotation>
  987. </xsd:element>
  988. <xsd:element name="reentrant"
  989. type="j2ee:true-falseType">
  990. <xsd:annotation>
  991. <xsd:documentation>
  992. The reentrant element specifies whether an entity
  993. bean is reentrant or not.
  994. The reentrant element must be one of the two
  995. following: true or false
  996. </xsd:documentation>
  997. </xsd:annotation>
  998. </xsd:element>
  999. <xsd:element name="cmp-version"
  1000. type="j2ee:cmp-versionType"
  1001. minOccurs="0"/>
  1002. <xsd:element name="abstract-schema-name"
  1003. type="j2ee:java-identifierType"
  1004. minOccurs="0">
  1005. <xsd:annotation>
  1006. <xsd:documentation>
  1007. The abstract-schema-name element specifies the name
  1008. of the abstract schema type of an entity bean with
  1009. cmp-version 2.x. It is used in EJB QL queries.
  1010. For example, the abstract-schema-name for an entity
  1011. bean whose local interface is
  1012. com.acme.commerce.Order might be Order.
  1013. </xsd:documentation>
  1014. </xsd:annotation>
  1015. </xsd:element>
  1016. <xsd:element name="cmp-field"
  1017. type="j2ee:cmp-fieldType"
  1018. minOccurs="0"
  1019. maxOccurs="unbounded"/>
  1020. <xsd:element name="primkey-field"
  1021. type="j2ee:string"
  1022. minOccurs="0">
  1023. <xsd:annotation>
  1024. <xsd:documentation>
  1025. The primkey-field element is used to specify the
  1026. name of the primary key field for an entity with
  1027. container-managed persistence.
  1028. The primkey-field must be one of the fields declared
  1029. in the cmp-field element, and the type of the field
  1030. must be the same as the primary key type.
  1031. The primkey-field element is not used if the primary
  1032. key maps to multiple container-managed fields
  1033. (i.e. the key is a compound key). In this case, the
  1034. fields of the primary key class must be public, and
  1035. their names must correspond to the field names of
  1036. the entity bean class that comprise the key.
  1037. </xsd:documentation>
  1038. </xsd:annotation>
  1039. </xsd:element>
  1040. <xsd:group ref="j2ee:jndiEnvironmentRefsGroup"/>
  1041. <xsd:element name="security-role-ref"
  1042. type="j2ee:security-role-refType"
  1043. minOccurs="0" maxOccurs="unbounded"/>
  1044. <xsd:element name="security-identity"
  1045. type="j2ee:security-identityType"
  1046. minOccurs="0"/>
  1047. <xsd:element name="query"
  1048. type="j2ee:queryType"
  1049. minOccurs="0" maxOccurs="unbounded"/>
  1050. </xsd:sequence>
  1051. <xsd:attribute name="id" type="xsd:ID"/>
  1052. </xsd:complexType>
  1053. <!-- **************************************************** -->
  1054. <xsd:complexType name="exclude-listType">
  1055. <xsd:annotation>
  1056. <xsd:documentation>
  1057. The exclude-listType specifies one or more methods which
  1058. the Assembler marks to be uncallable.
  1059. If the method permission relation contains methods that are
  1060. in the exclude list, the Deployer should consider those
  1061. methods to be uncallable.
  1062. </xsd:documentation>
  1063. </xsd:annotation>
  1064. <xsd:sequence>
  1065. <xsd:element name="description"
  1066. type="j2ee:descriptionType"
  1067. minOccurs="0"
  1068. maxOccurs="unbounded"/>
  1069. <xsd:element name="method"
  1070. type="j2ee:methodType"
  1071. maxOccurs="unbounded"/>
  1072. </xsd:sequence>
  1073. <xsd:attribute name="id" type="xsd:ID"/>
  1074. </xsd:complexType>
  1075. <!-- **************************************************** -->
  1076. <xsd:complexType name="message-driven-beanType">
  1077. <xsd:annotation>
  1078. <xsd:documentation>
  1079. The message-driven element declares a message-driven
  1080. bean. The declaration consists of:
  1081. - an optional description
  1082. - an optional display name
  1083. - an optional icon element that contains a small and a large
  1084. icon file name.
  1085. - a name assigned to the enterprise bean in
  1086. the deployment descriptor
  1087. - the message-driven bean's implementation class
  1088. - an optional declaration of the bean's messaging
  1089. type
  1090. - the message-driven bean's transaction management type
  1091. - an optional declaration of the bean's
  1092. message-destination-type
  1093. - an optional declaration of the bean's
  1094. message-destination-link
  1095. - an optional declaration of the message-driven bean's
  1096. activation configuration properties
  1097. - an optional declaration of the bean's environment
  1098. entries
  1099. - an optional declaration of the bean's EJB references
  1100. - an optional declaration of the bean's local EJB
  1101. references
  1102. - an optional declaration of the bean's web service
  1103. references
  1104. - an optional declaration of the security
  1105. identity to be used for the execution of the bean's
  1106. methods
  1107. - an optional declaration of the bean's
  1108. resource manager connection factory
  1109. references
  1110. - an optional declaration of the bean's resource
  1111. environment references.
  1112. - an optional declaration of the bean's message
  1113. destination references
  1114. </xsd:documentation>
  1115. </xsd:annotation>
  1116. <xsd:sequence>
  1117. <xsd:group ref="j2ee:descriptionGroup"/>
  1118. <xsd:element name="ejb-name"
  1119. type="j2ee:ejb-nameType"/>
  1120. <xsd:element name="ejb-class"
  1121. type="j2ee:ejb-classType"/>
  1122. <xsd:element name="messaging-type"
  1123. type="j2ee:fully-qualified-classType"
  1124. minOccurs="0">
  1125. <xsd:annotation>
  1126. <xsd:documentation>
  1127. The messaging-type element specifies the message
  1128. listener interface of the message-driven bean. If
  1129. the messaging-type element is not specified, it is
  1130. assumed to be javax.jms.MessageListener.
  1131. </xsd:documentation>
  1132. </xsd:annotation>
  1133. </xsd:element>
  1134. <xsd:element name="transaction-type"
  1135. type="j2ee:transaction-typeType"/>
  1136. <xsd:element name="message-destination-type"
  1137. type="j2ee:message-destination-typeType"
  1138. minOccurs="0"/>
  1139. <xsd:element name="message-destination-link"
  1140. type="j2ee:message-destination-linkType"
  1141. minOccurs="0"/>
  1142. <xsd:element name="activation-config"
  1143. type="j2ee:activation-configType"
  1144. minOccurs="0"/>
  1145. <xsd:group ref="j2ee:jndiEnvironmentRefsGroup"/>
  1146. <xsd:element name="security-identity"
  1147. type="j2ee:security-identityType"
  1148. minOccurs="0"/>
  1149. </xsd:sequence>
  1150. <xsd:attribute name="id" type="xsd:ID"/>
  1151. </xsd:complexType>
  1152. <!-- **************************************************** -->
  1153. <xsd:complexType name="method-intfType">
  1154. <xsd:annotation>
  1155. <xsd:documentation>
  1156. The method-intf element allows a method element to
  1157. differentiate between the methods with the same name and
  1158. signature that are multiply defined across the home and
  1159. component interfaces (e.g, in both an enterprise bean's
  1160. remote and local interfaces or in both an enterprise bean's
  1161. home and remote interfaces, etc.); the component and web
  1162. service endpoint interfaces, and so on.
  1163. The method-intf element must be one of the following:
  1164. Home
  1165. Remote
  1166. LocalHome
  1167. Local
  1168. ServiceEndpoint
  1169. </xsd:documentation>
  1170. </xsd:annotation>
  1171. <xsd:simpleContent>
  1172. <xsd:restriction base="j2ee:string">
  1173. <xsd:enumeration value="Home"/>
  1174. <xsd:enumeration value="Remote"/>
  1175. <xsd:enumeration value="LocalHome"/>
  1176. <xsd:enumeration value="Local"/>
  1177. <xsd:enumeration value="ServiceEndpoint"/>
  1178. </xsd:restriction>
  1179. </xsd:simpleContent>
  1180. </xsd:complexType>
  1181. <!-- **************************************************** -->
  1182. <xsd:complexType name="method-nameType">
  1183. <xsd:annotation>
  1184. <xsd:documentation>
  1185. The method-nameType contains a name of an enterprise
  1186. bean method or the asterisk (*) character. The asterisk is
  1187. used when the element denotes all the methods of an
  1188. enterprise bean's client view interfaces.
  1189. </xsd:documentation>
  1190. </xsd:annotation>
  1191. <xsd:simpleContent>
  1192. <xsd:restriction base="j2ee:string"/>
  1193. </xsd:simpleContent>
  1194. </xsd:complexType>
  1195. <!-- **************************************************** -->
  1196. <xsd:complexType name="method-paramsType">
  1197. <xsd:annotation>
  1198. <xsd:documentation>
  1199. The method-paramsType defines a list of the
  1200. fully-qualified Java type names of the method parameters.
  1201. </xsd:documentation>
  1202. </xsd:annotation>
  1203. <xsd:sequence>
  1204. <xsd:element name="method-param"
  1205. type="j2ee:java-typeType"
  1206. minOccurs="0"
  1207. maxOccurs="unbounded">
  1208. <xsd:annotation>
  1209. <xsd:documentation>
  1210. The method-param element contains a primitive
  1211. or a fully-qualified Java type name of a method
  1212. parameter.
  1213. </xsd:documentation>
  1214. </xsd:annotation>
  1215. </xsd:element>
  1216. </xsd:sequence>
  1217. <xsd:attribute name="id" type="xsd:ID"/>
  1218. </xsd:complexType>
  1219. <!-- **************************************************** -->
  1220. <xsd:complexType name="method-permissionType">
  1221. <xsd:annotation>
  1222. <xsd:documentation>
  1223. The method-permissionType specifies that one or more
  1224. security roles are allowed to invoke one or more enterprise
  1225. bean methods. The method-permissionType consists of an
  1226. optional description, a list of security role names or an
  1227. indicator to state that the method is unchecked for
  1228. authorization, and a list of method elements.
  1229. The security roles used in the method-permissionType
  1230. must be defined in the security-role elements of the
  1231. deployment descriptor, and the methods must be methods
  1232. defined in the enterprise bean's home, component and/or web
  1233. service endpoint interfaces.
  1234. </xsd:documentation>
  1235. </xsd:annotation>
  1236. <xsd:sequence>
  1237. <xsd:element name="description"
  1238. type="j2ee:descriptionType"
  1239. minOccurs="0"
  1240. maxOccurs="unbounded"/>
  1241. <xsd:choice>
  1242. <xsd:element name="role-name"
  1243. type="j2ee:role-nameType"
  1244. maxOccurs="unbounded"/>
  1245. <xsd:element name="unchecked"
  1246. type="j2ee:emptyType">
  1247. <xsd:annotation>
  1248. <xsd:documentation>
  1249. The unchecked element specifies that a method is
  1250. not checked for authorization by the container
  1251. prior to invocation of the method.
  1252. </xsd:documentation>
  1253. </xsd:annotation>
  1254. </xsd:element>
  1255. </xsd:choice>
  1256. <xsd:element name="method"
  1257. type="j2ee:methodType"
  1258. maxOccurs="unbounded"/>
  1259. </xsd:sequence>
  1260. <xsd:attribute name="id" type="xsd:ID"/>
  1261. </xsd:complexType>
  1262. <!-- **************************************************** -->
  1263. <xsd:complexType name="methodType">
  1264. <xsd:annotation>
  1265. <xsd:documentation>
  1266. <![CDATA[
  1267. The methodType is used to denote a method of an enterprise
  1268. bean's home, component, and/or web service endpoint
  1269. interface, or, in the case of a message-driven bean, the
  1270. bean's message listener method, or a set of such
  1271. methods. The ejb-name element must be the name of one of the
  1272. enterprise beans declared in the deployment descriptor; the
  1273. optional method-intf element allows to distinguish between a
  1274. method with the same signature that is multiply defined
  1275. across the home, component, and/or web service endpoint
  1276. interfaces; the method-name element specifies the method
  1277. name; and the optional method-params elements identify a
  1278. single method among multiple methods with an overloaded
  1279. method name.
  1280. There are three possible styles of using methodType element
  1281. within a method element:
  1282. 1.
  1283. <method>
  1284. <ejb-name>EJBNAME</ejb-name>
  1285. <method-name>*</method-name>
  1286. </method>
  1287. This style is used to refer to all the methods of the
  1288. specified enterprise bean's home, component, and/or web
  1289. service endpoint interfaces.
  1290. 2.
  1291. <method>
  1292. <ejb-name>EJBNAME</ejb-name>
  1293. <method-name>METHOD</method-name>
  1294. </method>
  1295. This style is used to refer to the specified method of
  1296. the specified enterprise bean. If there are multiple
  1297. methods with the same overloaded name, the element of
  1298. this style refers to all the methods with the overloaded
  1299. name.
  1300. 3.
  1301. <method>
  1302. <ejb-name>EJBNAME</ejb-name>
  1303. <method-name>METHOD</method-name>
  1304. <method-params>
  1305. <method-param>PARAM-1</method-param>
  1306. <method-param>PARAM-2</method-param>
  1307. ...
  1308. <method-param>PARAM-n</method-param>
  1309. </method-params>
  1310. </method>
  1311. This style is used to refer to a single method within a
  1312. set of methods with an overloaded name. PARAM-1 through
  1313. PARAM-n are the fully-qualified Java types of the
  1314. method's input parameters (if the method has no input
  1315. arguments, the method-params element contains no
  1316. method-param elements). Arrays are specified by the
  1317. array element's type, followed by one or more pair of
  1318. square brackets (e.g. int[][]). If there are multiple
  1319. methods with the same overloaded name, this style refers
  1320. to all of the overloaded methods.
  1321. Examples:
  1322. Style 1: The following method element refers to all the
  1323. methods of the EmployeeService bean's home, component,
  1324. and/or web service endpoint interfaces:
  1325. <method>
  1326. <ejb-name>EmployeeService</ejb-name>
  1327. <method-name>*</method-name>
  1328. </method>
  1329. Style 2: The following method element refers to all the
  1330. create methods of the EmployeeService bean's home
  1331. interface(s).
  1332. <method>
  1333. <ejb-name>EmployeeService</ejb-name>
  1334. <method-name>create</method-name>
  1335. </method>
  1336. Style 3: The following method element refers to the
  1337. create(String firstName, String LastName) method of the
  1338. EmployeeService bean's home interface(s).
  1339. <method>
  1340. <ejb-name>EmployeeService</ejb-name>
  1341. <method-name>create</method-name>
  1342. <method-params>
  1343. <method-param>java.lang.String</method-param>
  1344. <method-param>java.lang.String</method-param>
  1345. </method-params>
  1346. </method>
  1347. The following example illustrates a Style 3 element with
  1348. more complex parameter types. The method
  1349. foobar(char s, int i, int[] iar, mypackage.MyClass mycl,
  1350. mypackage.MyClass[][] myclaar) would be specified as:
  1351. <method>
  1352. <ejb-name>EmployeeService</ejb-name>
  1353. <method-name>foobar</method-name>
  1354. <method-params>
  1355. <method-param>char</method-param>
  1356. <method-param>int</method-param>
  1357. <method-param>int[]</method-param>
  1358. <method-param>mypackage.MyClass</method-param>
  1359. <method-param>mypackage.MyClass[][]</method-param>
  1360. </method-params>
  1361. </method>
  1362. The optional method-intf element can be used when it becomes
  1363. necessary to differentiate between a method that is multiply
  1364. defined across the enterprise bean's home, component, and/or
  1365. web service endpoint interfaces with the same name and
  1366. signature.
  1367. For example, the method element
  1368. <method>
  1369. <ejb-name>EmployeeService</ejb-name>
  1370. <method-intf>Remote</method-intf>
  1371. <method-name>create</method-name>
  1372. <method-params>
  1373. <method-param>java.lang.String</method-param>
  1374. <method-param>java.lang.String</method-param>
  1375. </method-params>
  1376. </method>
  1377. can be used to differentiate the create(String, String)
  1378. method defined in the remote interface from the
  1379. create(String, String) method defined in the remote home
  1380. interface, which would be defined as
  1381. <method>
  1382. <ejb-name>EmployeeService</ejb-name>
  1383. <method-intf>Home</method-intf>
  1384. <method-name>create</method-name>
  1385. <method-params>
  1386. <method-param>java.lang.String</method-param>
  1387. <method-param>java.lang.String</method-param>
  1388. </method-params>
  1389. </method>
  1390. and the create method that is defined in the local home
  1391. interface which would be defined as
  1392. <method>
  1393. <ejb-name>EmployeeService</ejb-name>
  1394. <method-intf>LocalHome</method-intf>
  1395. <method-name>create</method-name>
  1396. <method-params>
  1397. <method-param>java.lang.String</method-param>
  1398. <method-param>java.lang.String</method-param>
  1399. </method-params>
  1400. </method>
  1401. The method-intf element can be used with all th ree Styles
  1402. of the method element usage. For example, the following
  1403. method element example could be used to refer to all the
  1404. methods of the EmployeeService bean's remote home interface.
  1405. <method>
  1406. <ejb-name>EmployeeService</ejb-name>
  1407. <method-intf>Home</method-intf>
  1408. <method-name>*</method-name>
  1409. </method>
  1410. ]]>
  1411. </xsd:documentation>
  1412. </xsd:annotation>
  1413. <xsd:sequence>
  1414. <xsd:element name="description"
  1415. type="j2ee:descriptionType"
  1416. minOccurs="0" maxOccurs="unbounded"/>
  1417. <xsd:element name="ejb-name"
  1418. type="j2ee:ejb-nameType"/>
  1419. <xsd:element name="method-intf"
  1420. type="j2ee:method-intfType"
  1421. minOccurs="0">
  1422. </xsd:element>
  1423. <xsd:element name="method-name"
  1424. type="j2ee:method-nameType"/>
  1425. <xsd:element name="method-params"
  1426. type="j2ee:method-paramsType"
  1427. minOccurs="0"/>
  1428. </xsd:sequence>
  1429. <xsd:attribute name="id" type="xsd:ID"/>
  1430. </xsd:complexType>
  1431. <!-- **************************************************** -->
  1432. <xsd:complexType name="multiplicityType">
  1433. <xsd:annotation>
  1434. <xsd:documentation>
  1435. The multiplicityType describes the multiplicity of the
  1436. role that participates in a relation.
  1437. The value must be one of the two following:
  1438. One
  1439. Many
  1440. </xsd:documentation>
  1441. </xsd:annotation>
  1442. <xsd:simpleContent>
  1443. <xsd:restriction base="j2ee:string">
  1444. <xsd:enumeration value="One"/>
  1445. <xsd:enumeration value="Many"/>
  1446. </xsd:restriction>
  1447. </xsd:simpleContent>
  1448. </xsd:complexType>
  1449. <!-- **************************************************** -->
  1450. <xsd:complexType name="persistence-typeType">
  1451. <xsd:annotation>
  1452. <xsd:documentation>
  1453. The persistence-typeType specifies an entity bean's persistence
  1454. management type.
  1455. The persistence-type element must be one of the two following:
  1456. Bean
  1457. Container
  1458. </xsd:documentation>
  1459. </xsd:annotation>
  1460. <xsd:simpleContent>
  1461. <xsd:restriction base="j2ee:string">
  1462. <xsd:enumeration value="Bean"/>
  1463. <xsd:enumeration value="Container"/>
  1464. </xsd:restriction>
  1465. </xsd:simpleContent>
  1466. </xsd:complexType>
  1467. <!-- **************************************************** -->
  1468. <xsd:complexType name="query-methodType">
  1469. <xsd:annotation>
  1470. <xsd:documentation>
  1471. <![CDATA[
  1472. The query-method specifies the method for a finder or select
  1473. query.
  1474. The method-name element specifies the name of a finder or select
  1475. method in the entity bean's implementation class.
  1476. Each method-param must be defined for a query-method using the
  1477. method-params element.
  1478. It is used by the query-method element.
  1479. Example:
  1480. <query>
  1481. <description>Method finds large orders</description>
  1482. <query-method>
  1483. <method-name>findLargeOrders</method-name>
  1484. <method-params></method-params>
  1485. </query-method>
  1486. <ejb-ql>
  1487. SELECT OBJECT(o) FROM Order o
  1488. WHERE o.amount &gt; 1000
  1489. </ejb-ql>
  1490. </query>
  1491. ]]>
  1492. </xsd:documentation>
  1493. </xsd:annotation>
  1494. <xsd:sequence>
  1495. <xsd:element name="method-name"
  1496. type="j2ee:method-nameType"/>
  1497. <xsd:element name="method-params"
  1498. type="j2ee:method-paramsType"/>
  1499. </xsd:sequence>
  1500. <xsd:attribute name="id" type="xsd:ID"/>
  1501. </xsd:complexType>
  1502. <!-- **************************************************** -->
  1503. <xsd:complexType name="queryType">
  1504. <xsd:annotation>
  1505. <xsd:documentation>
  1506. The queryType defines a finder or select
  1507. query. It contains
  1508. - an optional description of the query
  1509. - the specification of the finder or select
  1510. method it is used by
  1511. - an optional specification of the result type
  1512. mapping, if the query is for a select method
  1513. and entity objects are returned.
  1514. - the EJB QL query string that defines the query.
  1515. Queries that are expressible in EJB QL must use the ejb-ql
  1516. element to specify the query. If a query is not expressible
  1517. in EJB QL, the description element should be used to
  1518. describe the semantics of the query and the ejb-ql element
  1519. should be empty.
  1520. The result-type-mapping is an optional element. It can only
  1521. be present if the query-method specifies a select method
  1522. that returns entity objects. The default value for the
  1523. result-type-mapping element is "Local".
  1524. </xsd:documentation>
  1525. </xsd:annotation>
  1526. <xsd:sequence>
  1527. <xsd:element name="description"
  1528. type="j2ee:descriptionType" minOccurs="0"/>
  1529. <xsd:element name="query-method"
  1530. type="j2ee:query-methodType"/>
  1531. <xsd:element name="result-type-mapping"
  1532. type="j2ee:result-type-mappingType"
  1533. minOccurs="0"/>
  1534. <xsd:element name="ejb-ql"
  1535. type="j2ee:xsdStringType"/>
  1536. </xsd:sequence>
  1537. <xsd:attribute name="id" type="xsd:ID"/>
  1538. </xsd:complexType>
  1539. <!-- **************************************************** -->
  1540. <xsd:complexType name="relationship-role-sourceType">
  1541. <xsd:annotation>
  1542. <xsd:documentation>
  1543. The relationship-role-sourceType designates the source of a
  1544. role that participates in a relationship. A
  1545. relationship-role-sourceType is used by
  1546. relationship-role-source elements to uniquely identify an
  1547. entity bean.
  1548. </xsd:documentation>
  1549. </xsd:annotation>
  1550. <xsd:sequence>
  1551. <xsd:element name="description"
  1552. type="j2ee:descriptionType"
  1553. minOccurs="0"
  1554. maxOccurs="unbounded"/>
  1555. <xsd:element name="ejb-name"
  1556. type="j2ee:ejb-nameType"/>
  1557. </xsd:sequence>
  1558. <xsd:attribute name="id" type="xsd:ID"/>
  1559. </xsd:complexType>
  1560. <!-- **************************************************** -->
  1561. <xsd:complexType name="relationshipsType">
  1562. <xsd:annotation>
  1563. <xsd:documentation>
  1564. The relationshipsType describes the relationships in
  1565. which entity beans with container-managed persistence
  1566. participate. The relationshipsType contains an optional
  1567. description; and a list of ejb-relation elements, which
  1568. specify the container managed relationships.
  1569. </xsd:documentation>
  1570. </xsd:annotation>
  1571. <xsd:sequence>
  1572. <xsd:element name="description"
  1573. type="j2ee:descriptionType"
  1574. minOccurs="0"
  1575. maxOccurs="unbounded"/>
  1576. <xsd:element name="ejb-relation"
  1577. type="j2ee:ejb-relationType"
  1578. maxOccurs="unbounded">
  1579. <xsd:unique name="role-name-uniqueness">
  1580. <xsd:annotation>
  1581. <xsd:documentation>
  1582. The ejb-relationship-role-name contains the name of a
  1583. relationship role. The name must be unique within
  1584. a relationship, but can be reused in different
  1585. relationships.
  1586. </xsd:documentation>
  1587. </xsd:annotation>
  1588. <xsd:selector
  1589. xpath=".//j2ee:ejb-relationship-role-name"/>
  1590. <xsd:field
  1591. xpath="."/>
  1592. </xsd:unique>
  1593. </xsd:element>
  1594. </xsd:sequence>
  1595. <xsd:attribute name="id" type="xsd:ID"/>
  1596. </xsd:complexType>
  1597. <!-- **************************************************** -->
  1598. <xsd:complexType name="result-type-mappingType">
  1599. <xsd:annotation>
  1600. <xsd:documentation>
  1601. The result-type-mappingType is used in the query element to
  1602. specify whether an abstract schema type returned by a query
  1603. for a select method is to be mapped to an EJBLocalObject or
  1604. EJBObject type.
  1605. The value must be one of the following:
  1606. Local
  1607. Remote
  1608. </xsd:documentation>
  1609. </xsd:annotation>
  1610. <xsd:simpleContent>
  1611. <xsd:restriction base="j2ee:string">
  1612. <xsd:enumeration value="Local"/>
  1613. <xsd:enumeration value="Remote"/>
  1614. </xsd:restriction>
  1615. </xsd:simpleContent>
  1616. </xsd:complexType>
  1617. <!-- **************************************************** -->
  1618. <xsd:complexType name="security-identityType">
  1619. <xsd:annotation>
  1620. <xsd:documentation>
  1621. The security-identityType specifies whether the caller's
  1622. security identity is to be used for the execution of the
  1623. methods of the enterprise bean or whether a specific run-as
  1624. identity is to be used. It contains an optional description
  1625. and a specification of the security identity to be used.
  1626. </xsd:documentation>
  1627. </xsd:annotation>
  1628. <xsd:sequence>
  1629. <xsd:element name="description"
  1630. type="j2ee:descriptionType"
  1631. minOccurs="0"
  1632. maxOccurs="unbounded"/>
  1633. <xsd:choice>
  1634. <xsd:element name="use-caller-identity"
  1635. type="j2ee:emptyType">
  1636. <xsd:annotation>
  1637. <xsd:documentation>
  1638. The use-caller-identity element specifies that
  1639. the caller's security identity be used as the
  1640. security identity for the execution of the
  1641. enterprise bean's methods.
  1642. </xsd:documentation>
  1643. </xsd:annotation>
  1644. </xsd:element>
  1645. <xsd:element name="run-as"
  1646. type="j2ee:run-asType"/>
  1647. </xsd:choice>
  1648. </xsd:sequence>
  1649. <xsd:attribute name="id" type="xsd:ID"/>
  1650. </xsd:complexType>
  1651. <!-- **************************************************** -->
  1652. <xsd:complexType name="session-beanType">
  1653. <xsd:annotation>
  1654. <xsd:documentation>
  1655. The session-beanType declares an session bean. The
  1656. declaration consists of:
  1657. - an optional description
  1658. - an optional display name
  1659. - an optional icon element that contains a small and a large
  1660. icon file name
  1661. - a name assigned to the enterprise bean
  1662. in the deployment description
  1663. - the names of the session bean's remote home and
  1664. remote interfaces, if any
  1665. - the names of the session bean's local home and
  1666. local interfaces, if any
  1667. - the name of the session bean's web service endpoint
  1668. interface, if any
  1669. - the session bean's implementation class
  1670. - the session bean's state management type
  1671. - the session bean's transaction management type
  1672. - an optional declaration of the bean's
  1673. environment entries
  1674. - an optional declaration of the bean's EJB references
  1675. - an optional declaration of the bean's local
  1676. EJB references
  1677. - an optional declaration of the bean's web
  1678. service references
  1679. - an optional declaration of the security role
  1680. references
  1681. - an optional declaration of the security identity
  1682. to be used for the execution of the bean's methods
  1683. - an optional declaration of the bean's resource
  1684. manager connection factory references
  1685. - an optional declaration of the bean's resource
  1686. environment references.
  1687. - an optional declaration of the bean's message
  1688. destination references
  1689. The elements that are optional are "optional" in the sense
  1690. that they are omitted when if lists represented by them are
  1691. empty.
  1692. Either both the local-home and the local elements or both
  1693. the home and the remote elements must be specified for the
  1694. session bean.
  1695. The service-endpoint element may only be specified if the
  1696. bean is a stateless session bean.
  1697. </xsd:documentation>
  1698. </xsd:annotation>
  1699. <xsd:sequence>
  1700. <xsd:group ref="j2ee:descriptionGroup"/>
  1701. <xsd:element name="ejb-name"
  1702. type="j2ee:ejb-nameType"/>
  1703. <xsd:element name="home"
  1704. type="j2ee:homeType"
  1705. minOccurs="0"/>
  1706. <xsd:element name="remote"
  1707. type="j2ee:remoteType"
  1708. minOccurs="0"/>
  1709. <xsd:element name="local-home"
  1710. type="j2ee:local-homeType"
  1711. minOccurs="0"/>
  1712. <xsd:element name="local"
  1713. type="j2ee:localType"
  1714. minOccurs="0"/>
  1715. <xsd:element name="service-endpoint"
  1716. type="j2ee:fully-qualified-classType"
  1717. minOccurs="0">
  1718. <xsd:annotation>
  1719. <xsd:documentation>
  1720. The service-endpoint element contains the
  1721. fully-qualified name of the enterprise bean's web
  1722. service endpoint interface. The service-endpoint
  1723. element may only be specified for a stateless
  1724. session bean. The specified interface must be a
  1725. valid JAX-RPC service endpoint interface.
  1726. </xsd:documentation>
  1727. </xsd:annotation>
  1728. </xsd:element>
  1729. <xsd:element name="ejb-class"
  1730. type="j2ee:ejb-classType"/>
  1731. <xsd:element name="session-type"
  1732. type="j2ee:session-typeType"/>
  1733. <xsd:element name="transaction-type"
  1734. type="j2ee:transaction-typeType"/>
  1735. <xsd:group ref="j2ee:jndiEnvironmentRefsGroup"/>
  1736. <xsd:element name="security-role-ref"
  1737. type="j2ee:security-role-refType"
  1738. minOccurs="0"
  1739. maxOccurs="unbounded"/>
  1740. <xsd:element name="security-identity"
  1741. type="j2ee:security-identityType"
  1742. minOccurs="0"/>
  1743. </xsd:sequence>
  1744. <xsd:attribute name="id" type="xsd:ID"/>
  1745. </xsd:complexType>
  1746. <!-- **************************************************** -->
  1747. <xsd:complexType name="session-typeType">
  1748. <xsd:annotation>
  1749. <xsd:documentation>
  1750. The session-typeType describes whether the session bean is a
  1751. stateful session or stateless session. It is used by
  1752. session-type elements.
  1753. The value must be one of the two following:
  1754. Stateful
  1755. Stateless
  1756. </xsd:documentation>
  1757. </xsd:annotation>
  1758. <xsd:simpleContent>
  1759. <xsd:restriction base="j2ee:string">
  1760. <xsd:enumeration value="Stateful"/>
  1761. <xsd:enumeration value="Stateless"/>
  1762. </xsd:restriction>
  1763. </xsd:simpleContent>
  1764. </xsd:complexType>
  1765. <!-- **************************************************** -->
  1766. <xsd:complexType name="trans-attributeType">
  1767. <xsd:annotation>
  1768. <xsd:documentation>
  1769. The trans-attributeType specifies how the container must
  1770. manage the transaction boundaries when delegating a method
  1771. invocation to an enterprise bean's business method.
  1772. The value must be one of the following:
  1773. NotSupported
  1774. Supports
  1775. Required
  1776. RequiresNew
  1777. Mandatory
  1778. Never
  1779. </xsd:documentation>
  1780. </xsd:annotation>
  1781. <xsd:simpleContent>
  1782. <xsd:restriction base="j2ee:string">
  1783. <xsd:enumeration value="NotSupported"/>
  1784. <xsd:enumeration value="Supports"/>
  1785. <xsd:enumeration value="Required"/>
  1786. <xsd:enumeration value="RequiresNew"/>
  1787. <xsd:enumeration value="Mandatory"/>
  1788. <xsd:enumeration value="Never"/>
  1789. </xsd:restriction>
  1790. </xsd:simpleContent>
  1791. </xsd:complexType>
  1792. <!-- **************************************************** -->
  1793. <xsd:complexType name="transaction-typeType">
  1794. <xsd:annotation>
  1795. <xsd:documentation>
  1796. The transaction-typeType specifies an enterprise bean's
  1797. transaction management type.
  1798. The transaction-type must be one of the two following:
  1799. Bean
  1800. Container
  1801. </xsd:documentation>
  1802. </xsd:annotation>
  1803. <xsd:simpleContent>
  1804. <xsd:restriction base="j2ee:string">
  1805. <xsd:enumeration value="Bean"/>
  1806. <xsd:enumeration value="Container"/>
  1807. </xsd:restriction>
  1808. </xsd:simpleContent>
  1809. </xsd:complexType>
  1810. </xsd:schema>