Hello,
I've stumbled across this:
http://docs.jboss.org/weld/reference/latest/en-US/html_single/#example
It shows how to implement a login with JavaEE 6/CDI.
1. Why is the Credentials bean request-scoped and not session-scoped?
2. What's the purpose of the custom annotations @LoggedIn and @UserDatabase ("custom qualifier annotations"). Can anybody point me to good document explaining the principle behind this and why this programming model is necessary/desirable?
It seems to be core CDI, but unfortunately I'm short in time reading a lot documentation.
Thanks
Karsten
Java EE, JPA, JSF, CDI...