jboss-as-ee_1_1.xsd 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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.1"
  25. xmlns="urn:jboss:domain:ee:1.1"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. version="1.1">
  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:element name="spec-descriptor-property-replacement" type="descriptor-property-replacementType" minOccurs="0" maxOccurs="1" />
  36. <xs:element name="jboss-descriptor-property-replacement" type="descriptor-property-replacementType" minOccurs="0" maxOccurs="1" />
  37. </xs:sequence>
  38. </xs:complexType>
  39. <xs:complexType name="modulesType">
  40. <xs:choice minOccurs="0" maxOccurs="unbounded">
  41. <xs:element name="module" type="moduleType"/>
  42. </xs:choice>
  43. </xs:complexType>
  44. <xs:complexType name="moduleType">
  45. <xs:attribute name="name" type="xs:string" use="required"/>
  46. <xs:attribute name="slot" type="xs:string"/>
  47. </xs:complexType>
  48. <xs:simpleType name="ear-subdeployments-isolatedType">
  49. <xs:annotation>
  50. <xs:documentation>
  51. Flag indicating whether each of the subdeployments within a .ear can access classes belonging to
  52. another subdeployment within the same .ear. Setting this to false, allows the subdeployments to
  53. see classes belonging to other subdeployments within the .ear.
  54. For example:
  55. myapp.ear
  56. |
  57. |--- web.war
  58. |
  59. |--- ejb1.jar
  60. |
  61. |--- ejb2.jar
  62. If the ear-subdeployments-isolated is set to false, then the classes in web.war can access classes
  63. belonging to ejb1.jar and ejb2.jar. Similarly, classes from ejb1.jar can access classes from ejb2.jar
  64. (and vice-versa).
  65. *Note that this flag, has no effect on the isolated classloader of the .war file(s). i.e. irrespective
  66. of whether this flag is set to true or false, the .war within a .ear will have a isolated classloader
  67. and other subdeployments within that .ear will not be able to access classes from that .war. This is
  68. as per spec*
  69. </xs:documentation>
  70. </xs:annotation>
  71. <xs:restriction base="xs:boolean"/>
  72. </xs:simpleType>
  73. <xs:simpleType name="descriptor-property-replacementType">
  74. <xs:annotation>
  75. <xs:documentation>
  76. Flag indicating whether system property replacement will be performed on a descriptor. This defaults to
  77. true, however it is disabled in the default configurations.
  78. Security Node: System properties etc are resolved in the security context of the application server
  79. itself, not the deployment that contains the file. This means that if you are running with a security
  80. manager and enable this property, a deployment can potentially access system properties or environment
  81. entries that the security manager would have otherwise prevented.
  82. </xs:documentation>
  83. </xs:annotation>
  84. <xs:restriction base="xs:boolean"/>
  85. </xs:simpleType>
  86. </xs:schema>