The password would normally be received in the following message. You should probably manage a state for that.
Jeff On Thu, Dec 12, 2013 at 5:47 PM, rksdivakar <[email protected]> wrote: > Hi All, > > I am new to this Mina Framework. Exploring the Framework and its good to > learn. > > I have a requirement where in the user will be validated in the validated > by > following scenario: > > 1. user enters username via telnet. On validating the username a message is > displayed stating "valid user". > 2. then user will enter password where, it will be checked in the > properties > file and get validated. > > Could only please share me tho logic behind this via telnet. > > Via messageRecieved(IoSession session, Object message) method i am > receiving > the username through String msg = message.toString(); > > How can i get the password? > > Is it possible to retrieve the value from session object?? > > Please help.. Thanks in advance!!!! > > > > -- > View this message in context: > http://apache-mina.10907.n7.nabble.com/Retrieving-user-data-from-Telnet-in-Apache-Mina-tp40722.html > Sent from the Apache MINA Developer Forum mailing list archive at > Nabble.com. > -- Jeff MAURY "Legacy code" often differs from its suggested alternative by actually working and scaling. - Bjarne Stroustrup http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.twitter.com/jeffmaury
