From 9e63e41137d3255fc9fb3a4ce6fc389ec9137b85 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Wed, 16 May 2012 13:10:27 -0400 Subject: [PATCH] AMQP-234 Create 1.1 Schema Revert 1.0 schema to 1.0 and create 1.1 schema. Update all test files to use version-less (1.1) schema. Update spring-schemas. --- .../main/resources/META-INF/spring.schemas | 3 +- .../amqp/rabbit/config/spring-rabbit-1.0.xsd | 503 ++------ .../amqp/rabbit/config/spring-rabbit-1.1.xsd | 1030 +++++++++++++++++ .../config/AdminParserTests-0-context.xml | 2 +- .../config/AdminParserTests-1-context.xml | 2 +- .../config/AdminParserTests-2-context.xml | 2 +- .../ConnectionFactoryParserTests-context.xml | 2 +- ...ExchangeParserIntegrationTests-context.xml | 2 +- .../config/ExchangeParserTests-context.xml | 2 +- ...ExchangeParserIntegrationTests-context.xml | 2 +- .../ListenerContainerParserTests-context.xml | 2 +- ...ontainerPlaceholderParserTests-context.xml | 2 +- ...eueParserIllegalAnonymousTests-context.xml | 2 +- .../QueueParserIntegrationTests-context.xml | 2 +- .../QueueParserPlaceholderTests-context.xml | 2 +- .../config/QueueParserTests-context.xml | 2 +- .../RabbitNamespaceHandlerTests-context.xml | 2 +- 17 files changed, 1168 insertions(+), 396 deletions(-) create mode 100644 spring-rabbit/src/main/resources/org/springframework/amqp/rabbit/config/spring-rabbit-1.1.xsd diff --git a/spring-rabbit/src/main/resources/META-INF/spring.schemas b/spring-rabbit/src/main/resources/META-INF/spring.schemas index 179faf4f..381ab896 100644 --- a/spring-rabbit/src/main/resources/META-INF/spring.schemas +++ b/spring-rabbit/src/main/resources/META-INF/spring.schemas @@ -1,2 +1,3 @@ +http\://www.springframework.org/schema/rabbit/spring-rabbit-1.1.xsd=org/springframework/amqp/rabbit/config/spring-rabbit-1.1.xsd http\://www.springframework.org/schema/rabbit/spring-rabbit-1.0.xsd=org/springframework/amqp/rabbit/config/spring-rabbit-1.0.xsd -http\://www.springframework.org/schema/rabbit/spring-rabbit.xsd=org/springframework/amqp/rabbit/config/spring-rabbit-1.0.xsd +http\://www.springframework.org/schema/rabbit/spring-rabbit.xsd=org/springframework/amqp/rabbit/config/spring-rabbit-1.1.xsd diff --git a/spring-rabbit/src/main/resources/org/springframework/amqp/rabbit/config/spring-rabbit-1.0.xsd b/spring-rabbit/src/main/resources/org/springframework/amqp/rabbit/config/spring-rabbit-1.0.xsd index 07ed22ba..6255d7e1 100644 --- a/spring-rabbit/src/main/resources/org/springframework/amqp/rabbit/config/spring-rabbit-1.0.xsd +++ b/spring-rabbit/src/main/resources/org/springframework/amqp/rabbit/config/spring-rabbit-1.0.xsd @@ -56,18 +56,6 @@ ]]> - - - element. - ]]> - - - - - - - @@ -237,122 +225,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -403,6 +275,7 @@ @@ -440,7 +313,7 @@ - + - - - - - - - - - - @@ -477,7 +338,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - - - + ]]> + + + + @@ -776,17 +620,6 @@ ]]> - - - - used to receive asynchronous replies on the reply-channel the - child element is disallowed because the template itself is the listener. - ]]> - - - - - - for replies; optional; if not supplied, methods expecting replies - will use a temporary, exclusive, auto-delete queue. - ]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -948,13 +724,6 @@ ]]> - - - - - - - - - element). Passed to the Rabbit library when creating the connection. When not supplied, the - Rabbit library currently uses a fixed thread pool ExecutorService with 5 threads. - ]]> - - - - - - - - - - - - - - - - - diff --git a/spring-rabbit/src/main/resources/org/springframework/amqp/rabbit/config/spring-rabbit-1.1.xsd b/spring-rabbit/src/main/resources/org/springframework/amqp/rabbit/config/spring-rabbit-1.1.xsd new file mode 100644 index 00000000..07ed22ba --- /dev/null +++ b/spring-rabbit/src/main/resources/org/springframework/amqp/rabbit/config/spring-rabbit-1.1.xsd @@ -0,0 +1,1030 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + element. + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + used to receive asynchronous replies on the reply-channel the + child element is disallowed because the template itself is the listener. + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + for replies; optional; if not supplied, methods expecting replies + will use a temporary, exclusive, auto-delete queue. + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + element). Passed to the Rabbit library when creating the connection. When not supplied, the + Rabbit library currently uses a fixed thread pool ExecutorService with 5 threads. + ]]> + + + + + + + + + + + + + + + + + + + + + diff --git a/spring-rabbit/src/test/resources/org/springframework/amqp/rabbit/config/AdminParserTests-0-context.xml b/spring-rabbit/src/test/resources/org/springframework/amqp/rabbit/config/AdminParserTests-0-context.xml index 76a2dfcd..952dc05b 100644 --- a/spring-rabbit/src/test/resources/org/springframework/amqp/rabbit/config/AdminParserTests-0-context.xml +++ b/spring-rabbit/src/test/resources/org/springframework/amqp/rabbit/config/AdminParserTests-0-context.xml @@ -2,7 +2,7 @@