AMQP-57 updated Rabbit client version from 1.8.1 to 2.0.0. This required one change in RabbitTemplate due to a change in the Channel.basicConsume() method we were using
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<org.slf4j.version>1.5.10</org.slf4j.version>
|
||||
<org.codehaus.jackson.version>1.4.3</org.codehaus.jackson.version>
|
||||
<org.erlang.otp.version>1.5.3</org.erlang.otp.version>
|
||||
<com.rabbitmq.version>1.8.1</com.rabbitmq.version>
|
||||
<com.rabbitmq.version>2.0.0</com.rabbitmq.version>
|
||||
<org.springframework.version>3.0.3.RELEASE</org.springframework.version>
|
||||
</properties>
|
||||
<profiles>
|
||||
|
||||
@@ -301,7 +301,7 @@ public class RabbitTemplate extends RabbitAccessor implements RabbitOperations {
|
||||
}
|
||||
}
|
||||
};
|
||||
channel.basicConsume(replyToAddress.getRoutingKey(), noAck, consumerTag, noLocal, exclusive, consumer);
|
||||
channel.basicConsume(replyToAddress.getRoutingKey(), noAck, consumerTag, noLocal, exclusive, null, consumer);
|
||||
// TODO: get exchange and routing key from method args
|
||||
// methods that are higher in the stack can determine whether to fallback to template properties
|
||||
doSend(channel, exchange, routingKey, message);
|
||||
|
||||
Reference in New Issue
Block a user