ibm-ejb-jar-ext_1_0.xsd 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema
  3. targetNamespace="http://websphere.ibm.com/xml/ns/javaee"
  4. xmlns="http://websphere.ibm.com/xml/ns/javaee"
  5. xmlns:ext="http://websphere.ibm.com/xml/ns/javaee"
  6. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  7. elementFormDefault="qualified"
  8. attributeFormDefault="unqualified"
  9. version="1.0">
  10. <!-- ******************************************************* -->
  11. <xsd:annotation>
  12. <xsd:documentation>
  13. Copyright (c) 2010 IBM Corporation and others.
  14. All rights reserved. This program and the accompanying materials
  15. are made available under the terms of the Eclipse Public License v1.0
  16. which accompanies this distribution, and is available at
  17. http://www.eclipse.org/legal/epl-v10.html
  18. Contributors:
  19. IBM Corporation - initial API and implementation
  20. </xsd:documentation>
  21. </xsd:annotation>
  22. <!-- ******************************************************* -->
  23. <xsd:include schemaLocation="ibm-common-ext_1_0.xsd" />
  24. <!-- ******************************************************* -->
  25. <xsd:element name="ejb-jar-ext" type="ejb-jar-extType">
  26. <xsd:annotation>
  27. <xsd:documentation>
  28. The root of the ibm-ejb-jar-ext deployment descriptor.
  29. </xsd:documentation>
  30. </xsd:annotation>
  31. <xsd:unique name="unique-ejb-names">
  32. <xsd:selector xpath="ext:session | ext:message-driven" />
  33. <xsd:field xpath="@name" />
  34. </xsd:unique>
  35. </xsd:element>
  36. <!-- ******************************************************* -->
  37. <xsd:complexType name="ejb-jar-extType">
  38. <xsd:sequence>
  39. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  40. <xsd:element name="session" type="sessionType" />
  41. <xsd:element name="message-driven" type="message-drivenType" />
  42. </xsd:choice>
  43. </xsd:sequence>
  44. <xsd:attribute name="version" type="xsd:string" fixed="1.0" use="required" />
  45. <xsd:attribute name="id" type="xsd:ID"/>
  46. </xsd:complexType>
  47. <!-- ******************************************************* -->
  48. <xsd:complexType name="enterprise-beanType">
  49. <xsd:sequence>
  50. <xsd:element name="bean-cache" type="bean-cacheType" minOccurs="0" maxOccurs="1" />
  51. <xsd:element name="global-transaction" type="global-transactionType" minOccurs="0" maxOccurs="1" />
  52. <xsd:element name="local-transaction" type="local-transactionType" minOccurs="0" maxOccurs="1" />
  53. <xsd:element name="resource-ref" type="resource-refType" minOccurs="0" maxOccurs="unbounded" />
  54. <xsd:element name="run-as-mode" minOccurs="0" maxOccurs="unbounded">
  55. <xsd:complexType>
  56. <xsd:complexContent>
  57. <xsd:extension base="run-as-modeType">
  58. <xsd:sequence>
  59. <xsd:element name="method" type="methodType" minOccurs="1" maxOccurs="unbounded"/>
  60. </xsd:sequence>
  61. </xsd:extension>
  62. </xsd:complexContent>
  63. </xsd:complexType>
  64. </xsd:element>
  65. <xsd:element name="start-at-app-start" type="start-at-app-startType" minOccurs="0" maxOccurs="1" />
  66. </xsd:sequence>
  67. <xsd:attribute name="id" type="xsd:ID"/>
  68. <xsd:attribute name="name" type="xsd:string" use="required" />
  69. </xsd:complexType>
  70. <!-- ******************************************************* -->
  71. <xsd:complexType name="message-drivenType">
  72. <xsd:complexContent>
  73. <xsd:extension base="enterprise-beanType" />
  74. </xsd:complexContent>
  75. </xsd:complexType>
  76. <!-- ******************************************************* -->
  77. <xsd:complexType name="sessionType">
  78. <xsd:complexContent>
  79. <xsd:extension base="enterprise-beanType">
  80. <xsd:sequence>
  81. <xsd:element name="time-out" type="time-outType" minOccurs="0" maxOccurs="1" />
  82. </xsd:sequence>
  83. </xsd:extension>
  84. </xsd:complexContent>
  85. </xsd:complexType>
  86. <!-- ******************************************************* -->
  87. <xsd:complexType name="bean-cacheType">
  88. <xsd:attribute name="activation-policy" type="activation-policyType" />
  89. <xsd:attribute name="id" type="xsd:ID" />
  90. </xsd:complexType>
  91. <!-- ******************************************************* -->
  92. <xsd:simpleType name="activation-policyType">
  93. <xsd:restriction base="xsd:string">
  94. <xsd:enumeration value="ONCE"/>
  95. <xsd:enumeration value="ACTIVITY_SESSION"/>
  96. <xsd:enumeration value="TRANSACTION"/>
  97. </xsd:restriction>
  98. </xsd:simpleType>
  99. <!-- ******************************************************* -->
  100. <xsd:complexType name="run-as-modeType">
  101. <xsd:sequence>
  102. <!-- Specified-identity should only be used if the mode is SPECIFIED_IDENTITY -->
  103. <xsd:element name="specified-identity" minOccurs="0" maxOccurs="1">
  104. <xsd:complexType>
  105. <xsd:attribute name="role" type="xsd:string" use="required"/>
  106. <xsd:attribute name="description" type="xsd:string"/>
  107. </xsd:complexType>
  108. </xsd:element>
  109. </xsd:sequence>
  110. <xsd:attribute name="mode" use="required">
  111. <xsd:simpleType>
  112. <xsd:restriction base="xsd:string">
  113. <xsd:enumeration value="CALLER_IDENTITY"/>
  114. <xsd:enumeration value="SPECIFIED_IDENTITY"/>
  115. <xsd:enumeration value="SYSTEM_IDENTITY"/>
  116. </xsd:restriction>
  117. </xsd:simpleType>
  118. </xsd:attribute>
  119. <xsd:attribute name="description" type="xsd:string" />
  120. <xsd:attribute name="id" type="xsd:ID" />
  121. </xsd:complexType>
  122. <!-- ******************************************************* -->
  123. <xsd:complexType name="start-at-app-startType">
  124. <xsd:attribute name="value" type="xsd:boolean" use="required" />
  125. <xsd:attribute name="id" type="xsd:ID" />
  126. </xsd:complexType>
  127. <!-- ******************************************************* -->
  128. <xsd:complexType name="time-outType">
  129. <xsd:attribute name="value" type="xsd:integer" use="required" />
  130. <xsd:attribute name="id" type="xsd:ID" />
  131. </xsd:complexType>
  132. </xsd:schema>