[ http://issues.apache.org/jira/browse/DIRMINA-276?page=comments#action_12442818 ] Phan Thanh Hieu commented on DIRMINA-276: -----------------------------------------
Hi Trustin, It did not what I meant. I want to get the total number of being-processed messages of all opened sessions. When the application is stopping, we have to make sure all messages have been decoded are processed completely at the messageReceived() method? The protocol of my app: - Some other applications (called A) will connect to my software (called B) (via some connection). - While (B) is decoding message => (B) will send the ACK to (A) before call ProtocolDecoderOutput.write(Object) (after the messageReceived() will process the message). The message is already sent ACK called being-processed message. When stopping the (B): firstly, stop listening on Ports (unbind) then wait for completing all being-processed messages before terminated. That is the reason why I want to count the total number of being-processed messages of all opened sessions. Maybe it's just a special request so I have developed myself a counter which could solve this one. In the second thought, when we call the "unbindAll()" method => all messages have been decoded are processed completely before unbinding successful (this feature is already existed in the MINA). Am I correct? Anyway, thanks for your response. Thanks & best regards, Hieu Phan. of http://issues.apache.org/jira/browse/DIRMINA-276 messages. being- stopped administrators: http://www.atlassian.com/software/jira > [MINA] How to get the number of being-processed messages? > --------------------------------------------------------- > > Key: DIRMINA-276 > URL: http://issues.apache.org/jira/browse/DIRMINA-276 > Project: Directory MINA > Issue Type: Wish > Affects Versions: 0.8.2 > Environment: Unix/Window > Reporter: Phan Thanh Hieu > Assigned To: Trustin Lee > > MINA processes the received messages: > => Call the MessageDecoder.decode() => ProtocolDecoderOutput.write(Object) => > SessionHandler.messageReceived(...). > My wish: the kind of messages after call the > ProtocolDecoderOutput.write(Object) are call the being-processed messages. > => how would i get the number of being-processed messages at a time? > Do MINA 0.8.2 support my wishing? > I need to know this because my app is a Data Collection => the > being-processed messages have to be completed before the app has been stopped > successfully. > If you have any idea, please advice me. > Regards, > Hieu Phan. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
