1 22 23 package org.jboss.ejb3.test.jacc; 24 25 import javax.annotation.security.RolesAllowed; 26 import javax.annotation.security.PermitAll; 27 import javax.ejb.Remote ; 28 29 import org.jboss.annotation.security.SecurityDomain; 30 import org.jboss.annotation.ejb.AspectDomain; 31 32 37 @javax.ejb.Stateful 38 @Remote (Stateful.class) 39 @SecurityDomain ("other") 40 public class StatefulBean implements Stateful, java.io.Serializable 42 { 43 @PermitAll 44 public int unchecked(int i) 45 { 46 System.out.println("stateful unchecked"); 47 return i; 48 } 49 50 @RolesAllowed ("allowed") 51 public int checked(int i) 52 { 53 System.out.println("stateful checked"); 54 return i; 55 } 56 } 57 | Popular Tags |