<p style="margin:0px 0px 0px 0px;font:12.0px Arial;min-height:14.0px"><br></p>
<p style="margin:0px 0px 0px 0px;font:12.0px Arial">We have created,</p>
<p style="margin:0px 0px 0px 0px;font:12.0px Arial;min-height:14.0px"><br></p>
<p style="margin:0px 0px 0px 0px;font:12.0px Arial">- 1 connection and channel pool on that connection ( with 500 channels ) for subscribe</p>
<p style="margin:0px 0px 0px 0px;font:12.0px Arial">- 1 connection and channel pool on that connection ( with 500 channels ) for Consume</p>
<p style="margin:0px 0px 0px 0px;font:12.0px Arial;min-height:14.0px"><br></p>
<p style="margin:0px 0px 0px 0px;font:12.0px Arial">Our subscribe operation works fine.</p>
<p style="margin:0px 0px 0px 0px;font:12.0px Arial">However, consumer does not work. We are using QueuingConsumer like below.</p>
<p style="margin:0px 0px 0px 0px;font:12.0px Arial;min-height:14.0px"><br></p>
<p style="margin:0px 0px 0px 0px;font:12.0px Arial">Channel channel = getTheChannelFromPool();</p>
<p style="margin:0px 0px 0px 0px;font:12.0px Arial">QueueingConsumer consumer = <span style="color:#8d0d69">new</span> QueueingConsumer(channel);</p>
<p style="margin:0px 0px 0px 0px;font:12.0px Arial">channel.basicConsume(ourQueueName, false, consumer);</p>
<p style="margin:0px 0px 0px 0px;font:12.0px Arial">QueueingConsumer.Delivery delivery = consumer.nextDelivery(timeout);</p>
<p style="margin:0px 0px 0px 0px;font:12.0px Arial;min-height:14.0px"><br></p><p style="margin:0px 0px 0px 0px;font:12.0px Arial;min-height:14.0px">//after that keep the channel back to pool</p><p style="margin:0px 0px 0px 0px;font:12.0px Arial;min-height:14.0px">
<br></p><p style="margin:0px 0px 0px 0px;font:12.0px Arial;min-height:14.0px"><br></p>
<p style="margin:0px 0px 0px 0px;font:12.0px Arial">In this case, the delivery is coming as null.</p><p style="margin:0px 0px 0px 0px;font:12.0px Arial"><br></p><p style="margin:0px 0px 0px 0px;font:12.0px Arial">Surprisingly when we close the channel, we are getting the message. ( i.e/ delivery is not null )</p>
<p style="margin:0px 0px 0px 0px;font:12.0px Arial"><br></p><p style="margin:0px 0px 0px 0px;font:12.0px Arial">Can someone please help in solving this problem.</p><p style="margin:0px 0px 0px 0px;font:12.0px Arial"><br></p>
<p style="margin:0px 0px 0px 0px;font:12.0px Arial">Regards,</p><p style="margin:0px 0px 0px 0px;font:12.0px Arial">Vinay</p><div><br></div><div><br></div><div><br></div><div><br></div>