You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Barry Kaplan <gr...@memelet.com> on 2005/07/21 00:46:45 UTC
pre-close session hook?
My ProtocolHandler adds the next layer of protocol (quickfix again).
Before the ProtocolSession is closed I need to send a FIX logout
message. But the only callback is /after/ the mina session is closed. It
would be nice if there were a pre-close callback. Or is there one that I
cannot find?
--
barry kaplan
groups1@memelet.com
Re: pre-close session hook?
Posted by Yi Bing <ji...@gmail.com>.
Is 'sessionClosing' available now in MINA-2.0-M3?
Regards,
Bing Yi
Trustin Lee wrote:
>
> There isn't yet. I didn't add it because users can send logout messages
> only
> when they can close the session by themselves. But yes, it is a
> crosscutting
> condition, and we need some callback. Its name could be 'sessionClosing'?
> What do you think?
>
> Trustin
>
> 2005/7/21, Barry Kaplan :
>>
>> My ProtocolHandler adds the next layer of protocol (quickfix again).
>> Before the ProtocolSession is closed I need to send a FIX logout
>> message. But the only callback is /after/ the mina session is closed. It
>> would be nice if there were a pre-close callback. Or is there one that I
>> cannot find?
>>
>> --
>> barry kaplan
>> groups1@memelet.com
>>
>
>
>
> --
> what we call human nature is actually human habit
> --
> http://gleamynode.net/
>
>
--
View this message in context: http://www.nabble.com/pre-close-session-hook--tp449150p19157025.html
Sent from the Apache Directory Project mailing list archive at Nabble.com.
Re: pre-close session hook?
Posted by Barry Kaplan <gr...@memelet.com>.
> Its name could be 'sessionClosing'? What do you think?
That works for me.
-barry
Re: pre-close session hook?
Posted by Trustin Lee <tr...@gmail.com>.
There isn't yet. I didn't add it because users can send logout messages only
when they can close the session by themselves. But yes, it is a crosscutting
condition, and we need some callback. Its name could be 'sessionClosing'?
What do you think?
Trustin
2005/7/21, Barry Kaplan <gr...@memelet.com>:
>
> My ProtocolHandler adds the next layer of protocol (quickfix again).
> Before the ProtocolSession is closed I need to send a FIX logout
> message. But the only callback is /after/ the mina session is closed. It
> would be nice if there were a pre-close callback. Or is there one that I
> cannot find?
>
> --
> barry kaplan
> groups1@memelet.com
>
--
what we call human nature is actually human habit
--
http://gleamynode.net/