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.