Hi,<div>I don't understand something about getConsumerCount() method.</div><div><br></div><div>Following an example of my consumer Method according with tutorial. Each time my loop call queueDeclarePassive, the consumerCounter is incremented. I don't understand why, cause I re use always (each loop) the same consumer, so I expect that the consumerCounter does not increment. Could you explain these observation and confirm that is not a bug? (I use V2.2.0 of java client with 2.2.0 rabbitMQ Server).</div>
<div>Thanks,</div><div><br></div><div><br></div><div><div>QueueingConsumer consumer = new QueueingConsumer(channel);</div><div>boolean<span class="Apple-tab-span" style="white-space:pre">        </span>messageHasBeenRecept = false;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>while (!messageHasBeenRecept) {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>declareOk = channel.queueDeclarePassive(queueName);</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>System.out.println("QueueName:" + queueName);</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>System.out.println("ConsumerCount:" + declareOk.getConsumerCount());</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>System.out.println("MessageCount:" + declareOk.getMessageCount());</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span></div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>boolean autoAck = false;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>channel.basicConsume(queueName, autoAck, consumer);</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>QueueingConsumer.Delivery delivery = null;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>try {</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>delivery = consumer.nextDelivery(timeOut);</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>} catch (InterruptedException ie) {</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>continue;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>}</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>messageHasBeenRecept = (delivery != null);</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>if (messageHasBeenRecept) {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>System.out.println("Message recept :)"</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span>+ delivery.getBody().toString());</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>channel.basicAck(delivery.getEnvelope().getDeliveryTag(), false);</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>} else {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>System.err.println("No Message recept :(");</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>}<span class="Apple-tab-span" style="white-space:pre">                        </span></div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>}</div></div>