I know this question is not a good question because it's open to a gazillion of answers but here it is:
I am new to Java EE 6 (on JBoss AS 7), I am coming from a Tomcat + spring world. My first real web application is something like a simple crud with jsf jpa hibernate and ejb. Now I need to secure a URL (/admin/*) with the most trivial login form. I already have two tables (hibernate entities) named "User" (username, password, role_id and other data) and "Role" (code,name and little more). I could make my own LoginController, session scoped which manage the login related issues but I don't know how to say "hey, it's only for /admin path!" So.... I began reading about web.xml configuration: security constraints, jdbc realms, and so on. However, sorry, but I still can't reach a good knowledge point, I am too addicted to tutorials and learning-by-doing.
Can you help me find an example project with a simple login form? Or at least some tutorial or a few advice on how to bind my login form to my db tables? I don't need 500 pages of accurate documentation. Just trying to make "standard" authentication work.