It looks like AS 6 does the same as AS 5.
I tried posting this on jira but it doesn't accept my username/password.
Is this the same as this issue: https://jira.jboss.org/browse/EJBTHREE-1945
Do you use EJB2.1 or EJB3?
Note that I cannot provide you with much more help, but I remembered having read about other issues with "RunAs" and asked a search engine for it ;-).
Yes that seems to be the same issue, thanks for finding it.
I'm using EJB 2.1 - I'm stuck on AS4 unless this gets resolved or I refactor a lot of code so that an unidentified entity will never call a session bean which calls another session bean. I'm working on getting Infinispan working on AS4 at the moment..