2 Replies Latest reply on Aug 31, 2011 3:15 AM by markboletti

    Using security annotations in a Web application

    markboletti

      Hi all !

      I have a web application running on JBoss 6 which uses web.xml and jboss-web.xml to specify the security domain. I wonder, is it possible to specify

      it rather with annotations in a Servlet ?

       

      @SecurityDomain("dblogin")

      @RolesAllowed( { "Admin" })

      public class SecureServlet extends HttpServlet {

      }

       

      I've tried it, however it does not issue any authentication window.

      Thanks

      Mark