Hi <br> I have doubt/issue regarding new channel creation. In my application I run periodic jobs to make and publish message relevant for respective client. Client acknowledges all the messages on consumption also<br><br>My code looks as below:<br>
<br><br><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"> message publication<br></blockquote><br><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
            ConnectionFactory factory = new ConnectionFactory();<br>            factory.setHost(&quot;localhost&quot;);<br>            Connection connection = factory.newConnection();<br>            Channel channel = connection.createChannel();<br>
            String queuename = getOBQueueName(clientId);<br>            channel.queueDeclare(queuename, true, false, false, null); <br></blockquote><div><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
 /**  make the message **/<br></blockquote><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">channel.basicPublish(&quot;&quot;, queuename, MessageProperties.PERSISTENT_BASIC, message.getBytes()); <br>
</blockquote></div><br><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">            channel.close();<br>            connection.close();            <br>
</blockquote><br><br>However after a while [in the management console] I see a lot of channels [as of now more than 1000]. And most of these are not being used at all. <br><br>I would like to understand what is going wrong here.<br>
<br>thanks<br>pradeep<br>