jboss-app_4_2.dtd 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <?xml version='1.0' encoding='UTF-8' ?>
  2. <!-- The JBoss 4.2.x specific elements for ears.
  3. $Id: jboss-app_4_0.dtd 56293 2006-08-26 12:42:15Z vicky.kak@jboss.com $
  4. DOCTYPE jboss-app
  5. PUBLIC "-//JBoss//DTD J2EE Application 4.2//EN"
  6. "http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd"
  7. -->
  8. <!-- The jboss-app element is the root element.
  9. -->
  10. <!ELEMENT jboss-app (module-order?,security-domain?, unauthenticated-principal?,
  11. loader-repository?, jmx-name?, library-directory?, module*, security-role*)>
  12. <!--
  13. The value of the module-order could be implicit or strict
  14. <module-order>strict</module-order>
  15. or
  16. <module-order>implicit</module-order>
  17. The strict value indicates that the deployments of the modules will
  18. be done in the order that would be specified in the application.xml
  19. and jboss-app.xml file .
  20. The implicit value indicates the deployment would follow the order
  21. which would be specified in the DeploymentSorter.
  22. The default order will be implicit to support backward compatibility
  23. -->
  24. <!ELEMENT module-order (#PCDATA)>
  25. <!--
  26. The security-domain element specifies the JNDI name of the security
  27. manager that implements the EJBSecurityManager and RealmMapping for
  28. the domain. When specified at the jboss level it specifies the security
  29. domain for all j2ee components in the deployment unit.
  30. One can override the global security-domain at the container
  31. level using the security-domain element at the container-configuration
  32. level.
  33. Used in: jboss-app
  34. -->
  35. <!ELEMENT security-domain (#PCDATA)>
  36. <!--
  37. The unauthenticated-principal element specifies the name of the principal
  38. that will be returned by the EJBContext.getCallerPrincipal() method if there
  39. is no authenticated user. This Principal has no roles or privaledges to call
  40. any other beans.
  41. -->
  42. <!ELEMENT unauthenticated-principal (#PCDATA)>
  43. <!-- The loader-repository specifies the name of the UnifiedLoaderRepository
  44. MBean to use for the ear to provide ear level scoping of classes deployed
  45. in the ear. It is a unique JMX ObjectName string. It may also specify
  46. an arbitrary configuration by including a loader-repository-config element.
  47. Examples:
  48. <loader-repository>jboss.test:loader=cts-cmp2v1-sar.ear</loader-repository>
  49. <loader-repository loaderRepositoryClass='dot.com.LoaderRepository'>
  50. dot.com:loader=unique-archive-name
  51. <loader-repository-config configParserClass='dot.com.LoaderParser'>
  52. java2ParentDelegaton=true
  53. </loader-repository-config>
  54. </loader-repository>
  55. -->
  56. <!ELEMENT loader-repository (#PCDATA | loader-repository-config)*>
  57. <!-- The loaderRepositoryClass attribute gives the classname of the
  58. org.jboss.mx.loading.LoaderRepository implementation.
  59. -->
  60. <!ATTLIST loader-repository loaderRepositoryClass CDATA #IMPLIED>
  61. <!-- The loader-repository-config element specifies any arbitrary configuration
  62. fragment for use in configuring the loader-repository instance. The actual
  63. content of this element is specific to the loaderRepositoryClass and the
  64. code parsing the element.
  65. -->
  66. <!ELEMENT loader-repository-config (#PCDATA)>
  67. <!-- The configParserClass attribute gives the classname of the
  68. org.jboss.mx.loading.LoaderRepositoryFactory.LoaderRepositoryConfigParser
  69. implementation to use to parse the loader-repository-config content.
  70. -->
  71. <!ATTLIST loader-repository-config configParserClass CDATA #IMPLIED>
  72. <!-- The jmx-name element allows one to specify the JMX ObjectName to use
  73. for the MBean associated with the ejb-jar module. This must be a unique
  74. name and valid JMX ObjectName string.
  75. Used in: jboss-app
  76. -->
  77. <!ELEMENT jmx-name (#PCDATA)>
  78. <!-- An .ear file may contain a directory that contains libraries packaged in JAR files.
  79. The library-directory element of the .ear files deployment descriptor contains the name
  80. of this directory. If a library-directory element is not specified,
  81. the directory named lib is used.
  82. An empty library-directory element may be used to specify that there is no library directory.
  83. All files in this directory (but not subdirectories) with a .jar extension must be made available
  84. to all components packaged in the EAR file, including application clients.
  85. Used in: jboss-app
  86. -->
  87. <!ELEMENT library-directory (#PCDATA)>
  88. <!-- The module element is used to specify a jboss specific module archive.
  89. -->
  90. <!ELEMENT module (service | har | web)>
  91. <!-- Allow the module to have a unique id -->
  92. <!ATTLIST module id ID #IMPLIED>
  93. <!-- The service element specifies a service archive (SAR) to deploy.
  94. Example:
  95. <module>
  96. <service>external.sar</service>
  97. </module>
  98. -->
  99. <!ELEMENT service (#PCDATA)>
  100. <!-- The har element specifies a Hibernate archive (HAR) to deploy.
  101. Example:
  102. <module>
  103. <har>myapp.har</har>
  104. </module>
  105. -->
  106. <!ELEMENT har (#PCDATA)>
  107. <!-- The web element specifies a war
  108. Example:
  109. <module>
  110. <web>
  111. <web-uri>myapp.war</web-uri>
  112. <context-root>/myapp</context-root>
  113. </web>
  114. </module>
  115. -->
  116. <!ELEMENT web (web-uri, context-root)>
  117. <!--
  118. The web-uri element specifies the URI of a web application file,
  119. relative to the top level of the application package.
  120. Used in: web
  121. -->
  122. <!ELEMENT web-uri (#PCDATA)>
  123. <!-- The context-root element specifies the context root of a web
  124. application. This is normally specified at the ear level using the standard
  125. J2EE application.xml descriptor, but it may be given here for standalone wars.
  126. This should not override the application.xml level specification.
  127. Used in: web
  128. -->
  129. <!ELEMENT context-root (#PCDATA)>
  130. <!--
  131. The security-role element contains the definition of a security role.
  132. The definition consists of an the security role name and principal name element(s).
  133. Used in: jboss-app
  134. Example:
  135. <security-role>
  136. <role-name>Manager</role-name>
  137. <principal-name>j2ee</principal-name>
  138. <principal-name>javajoe</principal-name>
  139. </security-role>
  140. -->
  141. <!ELEMENT security-role (role-name, principal-name+)>
  142. <!--
  143. The role-name element is the name of the role.
  144. Used in: security-role
  145. -->
  146. <!ELEMENT role-name (#PCDATA)>
  147. <!--
  148. The principal-name element is the name of the principal that is mapped
  149. to the assembly role-name.
  150. Used in: security-role
  151. -->
  152. <!ELEMENT principal-name (#PCDATA)>