private void sendClose(int channel)
{
ChannelCloseOkBody body =
((AMQConnection) _connection).getProtocolHandler().getMethodRegistry().createChannelCloseOkBody();
AMQFrame frame = body.generateFrame(channel);
((AMQConnection) _connection).getProtocolHandler().writeFrame(frame);
}
private void checkSendingMessage() throws JMSException