From dcab11ae2ded6284a4b0f894e35dcdcbb7a429de Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Tue, 22 Mar 2011 12:36:51 +0000 Subject: [PATCH] Use namespace --- .../amqp/helloworld/HelloWorldConfiguration.java | 2 +- helloworld/src/main/resources/rabbitConfiguration.xml | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/helloworld/src/main/java/org/springframework/amqp/helloworld/HelloWorldConfiguration.java b/helloworld/src/main/java/org/springframework/amqp/helloworld/HelloWorldConfiguration.java index 395344a..6a6a4fc 100644 --- a/helloworld/src/main/java/org/springframework/amqp/helloworld/HelloWorldConfiguration.java +++ b/helloworld/src/main/java/org/springframework/amqp/helloworld/HelloWorldConfiguration.java @@ -32,12 +32,12 @@ public class HelloWorldConfiguration extends AbstractRabbitConfiguration { } @Bean + // Every queue is bound to the default direct exchange public Queue helloWorldQueue() { return new Queue(this.helloWorldQueueName); } /* - //Each queue is bound to the default direct exchange @Bean public Binding binding() { return declare(new Binding(helloWorldQueue(), defaultDirectExchange())); diff --git a/helloworld/src/main/resources/rabbitConfiguration.xml b/helloworld/src/main/resources/rabbitConfiguration.xml index 36a673c..970f935 100644 --- a/helloworld/src/main/resources/rabbitConfiguration.xml +++ b/helloworld/src/main/resources/rabbitConfiguration.xml @@ -1,7 +1,8 @@ - + @@ -9,8 +10,6 @@ - - - +