How to use RequiredModelMBean for UserLockoutManagerImpl ?


Sorry for my english

I try tu use UserLockoutManagerImpl to see the locked account.

I have to passed a RequiredModelMBean in the UserLockoutManagerImpl's constructor.

If I write
"UserLockoutManagerImpl ulManager = new UserLockoutManagerImpl(new RequiredModelMBean());"
, it's does'nt work when I write
"boolean bLock = ulManager.isLockedOut("login");".
I have a "java.lang.ClassCastException:".

Which attributes must I passed to the RequiredModelMBean ?

An example must be great !

thanks a lot

Cyrille V