I am using the sessionOpened() method on the IoHandler implementation to send the logOn message. Is there a similar solution like the KeepAlive filter for sending logon (on the session open event)?
Vikram ________________________________ From: Emmanuel Lecharny <[email protected]> To: [email protected] Sent: Thu, June 10, 2010 4:42:05 AM Subject: Re: Apache MINA & communication protocol On 6/10/10 1:28 PM, Charles Moulliard wrote: > Hi, > > Is there a way / classes that we can use with MINA to create a > communication protocole over MINA like by example to send every x > minutes a heartbeat / login or logout messages > There is a filter that does pretty much that in MINA : the KeepAliveFilter. It sends a message every N seconds to a remote host in order to keep the connection active. You might want to look at the associated code : http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/filter/keepalive/ -- Regards, Cordialement, Emmanuel Lécharny www.nextury.com
