AMQP-1 added 'async' Hello World walk through

This commit is contained in:
Mark Fisher
2010-07-15 16:23:54 -04:00
committed by Dave Syer
parent 2d2e7dffca
commit 04deaeddce

View File

@@ -2,7 +2,6 @@ package org.springframework.amqp.helloworld.async;
import java.util.concurrent.atomic.AtomicInteger;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.rabbit.config.AbstractRabbitConfiguration;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
import org.springframework.amqp.rabbit.connection.SingleConnectionFactory;
@@ -23,7 +22,6 @@ public class ProducerConfiguration extends AbstractRabbitConfiguration {
public RabbitTemplate rabbitTemplate() {
RabbitTemplate template = new RabbitTemplate(connectionFactory());
template.setRoutingKey(this.helloWorldQueueName);
template.setQueue(this.helloWorldQueueName);
return template;
}
@@ -35,11 +33,6 @@ public class ProducerConfiguration extends AbstractRabbitConfiguration {
return connectionFactory;
}
@Bean
public Queue helloWorldQueue() {
return new Queue(this.helloWorldQueueName);
}
@Bean
public ScheduledProducer scheduledProducer() {
return new ScheduledProducer();