This content has been marked as final.
Show 1 reply
-
1. Re: JAAS - more data about the user
ndario Nov 24, 2009 7:17 AM (in response to ndario)I installed custom principal in my own LoginModule which is my domain Entity, and it looks OK from the web layer.
BUT, when i call sessionContext.getCallerPrincipal() from my session bean, I get instance of SimplePrincipal which contains username only. I expected to get my own custom principal.
Is that expected behavior? Why don't I get the same result as from the web app? Is there anything I can do about this?
Please help.