protected Channel provideChannel ( ) throws IOException { if ( channel == null || ! channel . isOpen ( ) ) { Connection connection = connectionFactory . newConnection ( ) ; channel = connection . createChannel ( ) ; } return channel ; }
Initializes a channel if there is not already an open channel .