2 Replies Latest reply on Nov 20, 2011 7:26 AM by Be Mo

    Login via DB using Servlet 3.0 (HttpServletRequest.login(user,pw))

    Be Mo Newbie

      Hi,

       

      I want to migrate an application from Glassfish to JBoss AS7, the app

      uses a programmatic login via Servlet 3.0 Specification. The login

      gets its data from a database, so it uses the JNDIRealm to fetch the

      user data. Unfortunately I didn't find any up-to-date tutorial or

      blog via Google to do this in JBoss AS 7 (I found tutorials for JBoss <7,

      but that doesn't help me, though).

       

      The login works via:

      HttpServletRequest.login(username, password) and

      HttpServletRequest.logout().

       

      JSF pages use HttpServletRequest.isUserInRole('employee')

       

      Where can I look to find a tutorial?

       

      Cheers,

      Bernd