2 Replies Latest reply on Feb 17, 2006 5:31 PM by Michael Figuiere

    EBJ 3.0 and @SecurityDomain annotation

    Michael Figuiere Newbie

      I ve tried to deploy this simple session bean on JBoss 4.0.3 SP1 and 4.0.4 RC1 in order to test JAAS with EJB3, but the server never recognize the @SecurityDomain annotation :

      package jaastest;
      import javax.annotation.security.RolesAllowed;
      import javax.annotation.security.RolesReferenced;
      import javax.ejb.Stateless;
      import org.jboss.aspects.security.SecurityDomain;
      import jaastest.Hello;
      public class HelloBean implements Hello {
       public HelloBean() {
       public String sayHello() {
       return this.getClass().getAnnotation(SecurityDomain.class).toString();

      JBoss then just reply with this notification :

      [JaccHelper] jaastest.HelloBean has no @SecurityDomain - skipping JACC configuration

      I really don't see how to set up this securitydomain and didn't found any information about it after hours.

      If anybody has an idea...