If the connection is not connected, the constructor of the AMQPChannel throws an exception stating : Could not create channel. No connection available.
In particular, if the first connect() method call failed, the ampqconnection is stored in the class even if the connection is not opened and all future calls to the getChannel() method didn't try to reconnect, failing with the above exception
If the connection is not connected, the constructor of the AMQPChannel throws an exception stating :
Could not create channel. No connection available.
In particular, if the first connect() method call failed, the ampqconnection is stored in the class even if the connection is not opened and all future calls to the getChannel() method didn't try to reconnect, failing with the above exception