Skip to content

Commit 7e6d920

Browse files
author
Alexandru Scvortov
committed
minor tweak to ConfirmDontLoseMessages
1 parent 945c3c2 commit 7e6d920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ public void run() {
7373
Connection conn = connectionFactory.newConnection();
7474
Channel ch = conn.createChannel();
7575
ch.queueDeclare(QUEUE_NAME, true, false, true, null);
76-
ch.confirmSelect();
7776
ch.setAckListener(new AckListener() {
7877
public void handleAck(long seqNo,
7978
boolean multiple) {
@@ -85,6 +84,7 @@ public void handleAck(long seqNo,
8584
}
8685
}
8786
});
87+
ch.confirmSelect();
8888

8989
// Publish
9090
for (long i = 0; i < MSG_COUNT; ++i) {

0 commit comments

Comments
 (0)