Hi,<div>I don&#39;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&#39;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(&quot;QueueName:&quot; + queueName);</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>System.out.println(&quot;ConsumerCount:&quot; + declareOk.getConsumerCount());</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>System.out.println(&quot;MessageCount:&quot; + 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(&quot;Message recept :)&quot;</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(&quot;No Message recept :(&quot;);</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>