0 Replies Latest reply on Oct 26, 2011 11:07 PM by icey.xiong

    how to add @SecurityDomain package

    icey.xiong

      Dear All,

               I want to to use Jboss Authorization with @RolesAllowed and @SecurityDomain ,like this:

       

      @Stateless
      @SecurityDomain("JbossDomain")                      ---  error,can not find the annotation
      @public class Test
      {
           @RolesAllowed("admin")
           public void doOnly()
               {
                     System.out.println("it`s can be called by admin");
                }
      }
      

       

      I know @SecurityDomain in package jboss-ejb3-ext-api-2.0.0-beta-1.jar, after I add the jar file into build path,it can still can not find the annotation class. o,I am using Jboss 7.0.2  final version.

       

      someone knows anything about this?how can I add that jar into my project ? thank you very much!