Skip to content

Commit 9e15ee7

Browse files
author
Matthew Sackman
committed
because we now only write out persistent messages sent to a durable queue, we must make the queue durable and also, due to the 0.8 spec, the exchange durable.
1 parent cbbb571 commit 9e15ee7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/src/com/rabbitmq/examples/MulticastMain.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ public static void main(String[] args) {
102102
consumerConnections[i] = conn;
103103
Channel channel = conn.createChannel();
104104
if (consumerTxSize > 0) channel.txSelect();
105-
channel.exchangeDeclare(exchangeName, exchangeType);
106-
Queue.DeclareOk res = channel.queueDeclare();
105+
channel.exchangeDeclare(exchangeName, exchangeType, false, true, true, null);
106+
Queue.DeclareOk res = channel.queueDeclare("", false, true, true, true, null);
107107
String queueName = res.getQueue();
108108
QueueingConsumer consumer = new QueueingConsumer(channel);
109109
if (prefetchCount > 0) channel.basicQos(prefetchCount);

0 commit comments

Comments
 (0)