jboss-as-ee_1_0.xsd 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ JBoss, Home of Professional Open Source.
  4. ~ Copyright 2011, Red Hat, Inc., and individual contributors
  5. ~ as indicated by the @author tags. See the copyright.txt file in the
  6. ~ distribution for a full listing of individual contributors.
  7. ~
  8. ~ This is free software; you can redistribute it and/or modify it
  9. ~ under the terms of the GNU Lesser General Public License as
  10. ~ published by the Free Software Foundation; either version 2.1 of
  11. ~ the License, or (at your option) any later version.
  12. ~
  13. ~ This software is distributed in the hope that it will be useful,
  14. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. ~ Lesser General Public License for more details.
  17. ~
  18. ~ You should have received a copy of the GNU Lesser General Public
  19. ~ License along with this software; if not, write to the Free
  20. ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  21. ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  22. -->
  23. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  24. targetNamespace="urn:jboss:domain:ee:1.0"
  25. xmlns="urn:jboss:domain:ee:1.0"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. version="1.0">
  29. <!-- The EE subsystem root element -->
  30. <xs:element name="subsystem" type="subsystem"/>
  31. <xs:complexType name="subsystem">
  32. <xs:sequence>
  33. <xs:element name="global-modules" type="modulesType" minOccurs="0" maxOccurs="1"/>
  34. <xs:element name="ear-subdeployments-isolated" default="false" type="ear-subdeployments-isolatedType" minOccurs="0" maxOccurs="1"/>
  35. </xs:sequence>
  36. </xs:complexType>
  37. <xs:complexType name="modulesType">
  38. <xs:choice minOccurs="0" maxOccurs="unbounded">
  39. <xs:element name="module" type="moduleType"/>
  40. </xs:choice>
  41. </xs:complexType>
  42. <xs:complexType name="moduleType">
  43. <xs:attribute name="name" type="xs:string" use="required"/>
  44. <xs:attribute name="slot" type="xs:string"/>
  45. </xs:complexType>
  46. <xs:simpleType name="ear-subdeployments-isolatedType">
  47. <xs:annotation>
  48. <xs:documentation>
  49. Flag indicating whether each of the subdeployments within a .ear can access classes belonging to
  50. another subdeployment within the same .ear. Setting this to false, allows the subdeployments to
  51. see classes belonging to other subdeployments within the .ear.
  52. For example:
  53. myapp.ear
  54. |
  55. |--- web.war
  56. |
  57. |--- ejb1.jar
  58. |
  59. |--- ejb2.jar
  60. If the ear-subdeployments-isolated is set to false, then the classes in web.war can access classes
  61. belonging to ejb1.jar and ejb2.jar. Similarly, classes from ejb1.jar can access classes from ejb2.jar
  62. (and vice-versa).
  63. *Note that this flag, has no effect on the isolated classloader of the .war file(s). i.e. irrespective
  64. of whether this flag is set to true or false, the .war within a .ear will have a isolated classloader
  65. and other subdeployments within that .ear will not be able to access classes from that .war. This is
  66. as per spec*
  67. </xs:documentation>
  68. </xs:annotation>
  69. <xs:restriction base="xs:boolean"/>
  70. </xs:simpleType>
  71. </xs:schema>