Hi guys,
The Jymsg library doesn't throwing
LoginRefusedException for all invalid logins.
Consider the following invalid users and password in
your tests.
User - jjjj
Password - jjjj
This example throws AccountLockedException
User - mmmm
Password - mmmm
This example doesn't throws any exceptions and the
login seems to be good but you can't do anything with
this session opened.
User - llll
Password - llll
The same behaviour like last case.
User - polkjh
Password - 9999
This example throws LoginRefusedException
A workaround for this is always check the SessionStatus
after login. Something like this:
session.login( "llll", "llll" );
if( session.getSesionStatus() !=
StatusConstants.TATUS_MESSAGING )
// login failed !!!
This is correct ?
Thaks in advance for your response,
Leidson Campos
PlanetaMessenger.org