Thanks Jose, you're right. But I need to have both roles A and B to run a method from my bean (they will be checked using SessionContext.isCallerInRole() method). I still don't know how this can be done.
[Message sent by forum member 'olafos' (olafos)]
http://forums.java.net/jive/thread.jspa?messageID=291794