I have CMP and DatabaseServerModuleLogin on the same db. When I type correct username and password i get to the cmp. In other case getting to cmp raise error - so everything seems to be ok.
But when i execute loginContext.login() with bad username or password i don't get LoginException.
In security domain in login-config.xml i don't have module option "unauthenticatedIdentity".
What's going on? Please help.
PS I have JBoss 3.2.2 on WinXP. My db is SAPDB.
LoginContext.login does not do server side authentication. You won't get an exception until you first time invoke your EJB on the server and it fails to authenticate.
If you need to authenticate the client on startup you need to invoke a dummy method on the EJB to force authentication.