jboss-as-messaging-deployment_1_0.xsd 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. xmlns="urn:jboss:messaging-deployment:1.0"
  25. targetNamespace="urn:jboss:messaging-deployment:1.0"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. version="1.0">
  29. <xs:element name="messaging-deployment">
  30. <xs:annotation>
  31. <xs:documentation>
  32. <![CDATA[
  33. The configuration of a messaging deployment
  34. ]]>
  35. </xs:documentation>
  36. </xs:annotation>
  37. <xs:complexType>
  38. <xs:sequence>
  39. <xs:element maxOccurs="unbounded" minOccurs="0" name="hornetq-server" type="hornetq-serverType"/>
  40. </xs:sequence>
  41. </xs:complexType>
  42. </xs:element>
  43. <xs:complexType name="hornetq-serverType">
  44. <xs:annotation>
  45. <xs:documentation>
  46. <![CDATA[
  47. The configuration of entries for a HornetQ server.
  48. ]]>
  49. </xs:documentation>
  50. </xs:annotation>
  51. <xs:all>
  52. <xs:element maxOccurs="1" minOccurs="0" name="jms-destinations">
  53. <xs:complexType>
  54. <xs:sequence>
  55. <xs:element name="jms-queue" maxOccurs="unbounded" minOccurs="0" type="jmsQueueType"/>
  56. <xs:element name="jms-topic" maxOccurs="unbounded" minOccurs="0" type="jmsTopicType"/>
  57. </xs:sequence>
  58. </xs:complexType>
  59. </xs:element>
  60. </xs:all>
  61. <xs:attribute name="name" type="xs:string" use="optional" default="default">
  62. <xs:annotation>
  63. <xs:documentation>
  64. The name to use for this HornetQ Server. Must correspond to a HornetQ server installed in
  65. the main configuration.
  66. </xs:documentation>
  67. </xs:annotation>
  68. </xs:attribute>
  69. </xs:complexType>
  70. <xs:complexType name="entryType">
  71. <xs:attribute name="name" type="xs:string" use="required"/>
  72. </xs:complexType>
  73. <xs:complexType name="jmsQueueType">
  74. <xs:sequence>
  75. <xs:element name="entry" type="entryType" maxOccurs="unbounded" minOccurs="1"/>
  76. <xs:element name="selector" maxOccurs="1" minOccurs="0">
  77. <xs:complexType>
  78. <xs:attribute name="string" type="xs:string" use="required"/>
  79. </xs:complexType>
  80. </xs:element>
  81. <xs:element name="durable" type="xs:boolean" maxOccurs="1" minOccurs="0"/>
  82. </xs:sequence>
  83. <xs:attribute name="name" type="xs:string" use="required"/>
  84. </xs:complexType>
  85. <xs:complexType name="jmsTopicType">
  86. <xs:sequence>
  87. <xs:element name="entry" type="entryType" maxOccurs="unbounded" minOccurs="1"/>
  88. </xs:sequence>
  89. <xs:attribute name="name" type="xs:string" use="required"/>
  90. </xs:complexType>
  91. <xs:complexType name="transactionType">
  92. <xs:attribute name="mode" use="required" type="modeType"/>
  93. </xs:complexType>
  94. <xs:simpleType name="modeType">
  95. <xs:restriction base="xs:token">
  96. <xs:enumeration value="xa">
  97. <xs:annotation>
  98. <xs:documentation></xs:documentation>
  99. </xs:annotation>
  100. </xs:enumeration>
  101. <xs:enumeration value="local">
  102. <xs:annotation>
  103. <xs:documentation></xs:documentation>
  104. </xs:annotation>
  105. </xs:enumeration>
  106. <xs:enumeration value="none">
  107. <xs:annotation>
  108. <xs:documentation></xs:documentation>
  109. </xs:annotation>
  110. </xs:enumeration>
  111. </xs:restriction>
  112. </xs:simpleType>
  113. </xs:schema>