Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF web app example (CDI, bean validation)  RSS feed

 
Karsten Wutzke
Ranch Hand
Posts: 106
Hibernate MySQL Database Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!