Hi all,
I have just upgraded to JBoss AS 4.0.5GA and I am experiencing some unexpected behavior. I have two SLSB converted from EJB 2.1 XDoclet beans to EJB3:
@Stateless @Local(SomeLocal.class) @RunAs(SomeBean.SOME_ROLE) public class SomeBean implements SomeLocal { static final String SOME_ROLE = "someRole"; @EJB OtherLocal otherLocal; public boolean test() { return otherLocal.test(); } }
@Stateless @Local(OtherLocal.class) public class OtherBean implements OtherLocal { @Resource SessionContext context; @RolesAllowed(SomeBean.SOME_ROLE) public boolean test() { return context.isCallerInRole(SomeBean.SOME_ROLE); } }