[rabbitmq-discuss] Java Client not able to create channel

Abhishek Kona abhishek.kona at gmail.com
Wed Nov 24 10:31:06 GMT 2010


Hi

I am using the Java API 2.1.0 with RabbitMQ 2.1.0

My code is :
  if ((this.channel == null) || this.channel.isOpen() == false)
         {
             try
             {

                 this.channel = connection.createChannel();

             }
             catch (final IOException e)
             {
                 logger.error("While refreshing channel" + e);

             }
        }


There is a single instance of this class which has a connection object 
which is created only once.
A channel is created before every operation on RabbitMQ.
I have observed that after some time the program waits at 
connection.createChannel() (It waits does not throw and exception).
Is there something wrong in what I am doing or is it an issue with the 
2.1.0 library.

Thanks and Regards
-Abhishek Kona


More information about the rabbitmq-discuss mailing list