tag:blogger.com,1999:blog-34883908.post8820407057373972688..comments2019-08-25T14:32:29.637-05:00Comments on Random things about computers: LoginContext of ACC or more?Justinhttp://www.blogger.com/profile/09753215511597070628noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-34883908.post-40430598554287548152012-09-10T19:56:44.992-05:002012-09-10T19:56:44.992-05:00@Unknown:
When you inject a secure resource you a...@Unknown:<br /><br />When you inject a secure resource you are using it!<br /><br />Your injected resource will be resolved on it's first use. In order to resolve it you must authenticate.<br /><br />I think what you want is to be able to check to see if the person logged in correctly and do something if they didn't? Correct?<br /><br />You can do that in a round about way. You can create a secure EJB that does about nothing and see what happens when you try to access it. That will mean they failed login or something.<br /><br />However, the correct way to do a more custom login process is to use programmatic login.<br /><br />You can find out about all of that in the Java EE 6 spec.Justinhttps://www.blogger.com/profile/09753215511597070628noreply@blogger.comtag:blogger.com,1999:blog-34883908.post-11969927718058452252011-11-22T09:19:44.973-06:002011-11-22T09:19:44.973-06:00Hello I am interested in the last sentence. I hav...Hello I am interested in the last sentence. I have an application client that accesses secure EJB. I do not like the eager authentication that happens when I inject the EJB. Is there a way to defeat this mechanism? How can I gain more control over this?Unknownhttps://www.blogger.com/profile/03897203998273340172noreply@blogger.com