> I forgot to ask one thing; are you sure that decode() is invoked only
once
> for one message?  It's not always true.  You will have to increase the
> counter only when you call ProtocolDecoderOutput.write().  Are you
doing
> so?
>
Yes, sure, I did do that. :P
Each time I call "write", increase *counter*.
Done for processing message at "messageReceived", decrease *counter*.

Thanks & best regards,
Hieu Phan.


> -----Original Message-----
> From: Trustin Lee [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 07, 2006 12:01 PM
> To: [email protected]
> Subject: Re: [MINA] Does MINA finish all "decoded messages" before
> stopping?
> 
> On 11/7/06, Hieu Phan Thanh <[EMAIL PROTECTED]> wrote:
> >
> > I have added an counter (static variable) and this variable will be
> > increased 1 when the *decode()* is invoked and it will be decreased
1
> > when the *messageReceived()* is invoked. My expected result is when
the
> > system is stopped successful, this counter's value must be zero (0).
But
> > it was not.
> 
> 
> I forgot to ask one thing; are you sure that decode() is invoked only
once
> for one message?  It's not always true.  You will have to increase the
> counter only when you call ProtocolDecoderOutput.write().  Are you
doing
> so?
> 
> Trustin
> --
> what we call human nature is actually human habit
> --
> http://gleamynode.net/
> --
> PGP key fingerprints:
> * E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
> * B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6

Reply via email to