[Beepcore-java-users] Closing a channel
Status: Beta
Brought to you by:
huston
From: Prashant H. <pra...@gm...> - 2004-11-09 10:30:54
|
I am trying to implement RFC 3195 based reliable syslog mechansim. In this communication, my listener is sending a close channel. For example: // once the listener figures out that he has received "NUL" message, he tries to close the //channel public void receiveNUL(Message msg){ Channel channel = msg.getChannel(); try { channel.close(); }catch(Exception e){ e.printStackTrace(); } } This results in the initiator getting the "close" message..and it responds with its close message. However, the listener is not able to process this message as he is blocked in "channel.close()" Is this the right way to use Channel.close or am I missing something? Prashant |