You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by mat <fo...@gmail.com> on 2007/04/09 20:43:37 UTC
Mina token
Hi all,
In order to check if the socket connection is still alive, i need to at a
token between client and server. I just wonder in mina how can I add this?
Maybe how can I combine this with session idle function already had in mina.
Thanks.
Re: Mina token
Posted by mat <fo...@gmail.com>.
Great. I will try that. Thanks a lot.
2007/4/11, Julien Vermillard <jv...@archean.fr>:
>
> Yes, It's what I ususaly do.
>
> Julien
>
> Le mercredi 11 avril 2007 à 22:30 +0800, mat a écrit :
> > Hi, there
> >
> > Is it possible for now(since the filter is not officely in mina 1.0.2) I
> > send the ping info every 1 mins and also set session.setIdleTime(
> > IdleStatus.READER_IDLE, 2mins) to do this job?
> >
> >
> > Thanks.
> >
> >
> >
> > 2007/4/10, Eero Nevalainen <ee...@indagon.com>:
> > >
> > > mat wrote:
> > > > Thanks. Trustin
> > > >
> > > > However, is it already in the mina1.0.2? BTW, can I implement my own
> > > > protocol for ping-pong purpose?
> > >
> > > The "filter" will send whatever message that's specified in the
> > > constructor, so you can use it with whatever protocol.
> > >
> > >
> > > Trustin: I just noted that the ActiveKeepAliveFilter that I sent you
> > > actually doesn't have the constructor that let's you specify the sent
> > > messages. Can you include that along with the integration? If you look
> > > at the abstract super class you'll see what I mean.
> > >
> > > -Eero Nevalainen
> > >
>
>
Re: Mina token
Posted by Julien Vermillard <jv...@archean.fr>.
Yes, It's what I ususaly do.
Julien
Le mercredi 11 avril 2007 à 22:30 +0800, mat a écrit :
> Hi, there
>
> Is it possible for now(since the filter is not officely in mina 1.0.2) I
> send the ping info every 1 mins and also set session.setIdleTime(
> IdleStatus.READER_IDLE, 2mins) to do this job?
>
>
> Thanks.
>
>
>
> 2007/4/10, Eero Nevalainen <ee...@indagon.com>:
> >
> > mat wrote:
> > > Thanks. Trustin
> > >
> > > However, is it already in the mina1.0.2? BTW, can I implement my own
> > > protocol for ping-pong purpose?
> >
> > The "filter" will send whatever message that's specified in the
> > constructor, so you can use it with whatever protocol.
> >
> >
> > Trustin: I just noted that the ActiveKeepAliveFilter that I sent you
> > actually doesn't have the constructor that let's you specify the sent
> > messages. Can you include that along with the integration? If you look
> > at the abstract super class you'll see what I mean.
> >
> > -Eero Nevalainen
> >
Re: Mina token
Posted by mat <fo...@gmail.com>.
Hi, there
Is it possible for now(since the filter is not officely in mina 1.0.2) I
send the ping info every 1 mins and also set session.setIdleTime(
IdleStatus.READER_IDLE, 2mins) to do this job?
Thanks.
2007/4/10, Eero Nevalainen <ee...@indagon.com>:
>
> mat wrote:
> > Thanks. Trustin
> >
> > However, is it already in the mina1.0.2? BTW, can I implement my own
> > protocol for ping-pong purpose?
>
> The "filter" will send whatever message that's specified in the
> constructor, so you can use it with whatever protocol.
>
>
> Trustin: I just noted that the ActiveKeepAliveFilter that I sent you
> actually doesn't have the constructor that let's you specify the sent
> messages. Can you include that along with the integration? If you look
> at the abstract super class you'll see what I mean.
>
> -Eero Nevalainen
>
Re: Mina token
Posted by Eero Nevalainen <ee...@indagon.com>.
mat wrote:
> Thanks. Trustin
>
> However, is it already in the mina1.0.2? BTW, can I implement my own
> protocol for ping-pong purpose?
The "filter" will send whatever message that's specified in the
constructor, so you can use it with whatever protocol.
Trustin: I just noted that the ActiveKeepAliveFilter that I sent you
actually doesn't have the constructor that let's you specify the sent
messages. Can you include that along with the integration? If you look
at the abstract super class you'll see what I mean.
-Eero Nevalainen
Re: Mina token
Posted by Trustin Lee <tr...@gmail.com>.
On 4/10/07, mat <fo...@gmail.com> wrote:
> Thanks. Trustin
>
> However, is it already in the mina1.0.2? BTW, can I implement my own
> protocol for ping-pong purpose?
It's not included to the official distribution yet. Of course, you
could implement yours, too.
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6
Re: Mina token
Posted by mat <fo...@gmail.com>.
Thanks. Trustin
However, is it already in the mina1.0.2? BTW, can I implement my own
protocol for ping-pong purpose?
2007/4/10, Trustin Lee <tr...@gmail.com>:
>
> On 4/10/07, mat <fo...@gmail.com> wrote:
> > Hi all,
> >
> > In order to check if the socket connection is still alive, i need to at
> a
> > token between client and server. I just wonder in mina how can I add
> this?
> > Maybe how can I combine this with session idle function already had in
> mina.
>
> Do you mean exchanging the ping-pong messages periodically? There's
> related contribution already:
>
> https://issues.apache.org/jira/browse/DIRMINA-354
>
> HTH,
> Trustin
> --
> what we call human nature is actually human habit
> --
> http://gleamynode.net/
> --
> PGP Key ID: 0x0255ECA6
>
Re: Mina token
Posted by Trustin Lee <tr...@gmail.com>.
On 4/10/07, mat <fo...@gmail.com> wrote:
> Hi all,
>
> In order to check if the socket connection is still alive, i need to at a
> token between client and server. I just wonder in mina how can I add this?
> Maybe how can I combine this with session idle function already had in mina.
Do you mean exchanging the ping-pong messages periodically? There's
related contribution already:
https://issues.apache.org/jira/browse/DIRMINA-354
HTH,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6