• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF web app example (CDI, bean validation)

Karsten Wutzke
Ranch Hand
Posts: 106
Hibernate MySQL Database Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I've stumbled across this:


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.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic