- 
        1. Re: EJB3 @SecurityDomain and @RunAs or @RunAsPrincipal not wmikeboo Dec 28, 2005 8:08 AM (in response to cfregin)Hi, 
 I have exactly the same problem.
 Did you solve it?
- 
        2. Re: EJB3 @SecurityDomain and @RunAs or @RunAsPrincipal not wandrew_wot Apr 18, 2006 8:21 PM (in response to cfregin)I am using 4.03 and running into the same issue. 
 Any ideas, are there some extra steps that I am missing?
 Thanks
- 
        3. Re: EJB3 @SecurityDomain and @RunAs or @RunAsPrincipal not wgalo.navarro Oct 3, 2006 10:55 AM (in response to cfregin)Put ne in the list, has anybody solved this? 
- 
        4. Re: EJB3 @SecurityDomain and @RunAs or @RunAsPrincipal not wrruppel Apr 7, 2008 4:23 PM (in response to cfregin)I found this solution: 
 http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142183#4142183
- 
        5. Re: EJB3 @SecurityDomain and @RunAs or @RunAsPrincipal not workidima_ts Mar 10, 2010 2:16 AM (in response to cfregin)Hi, i meet the same problem. The solution by Rafael Ruppel didn't suite for me, i use jboss 5.1, there is no file jboss.xml (what is analog?) My code (sorry, don't know how mark this text as code): @SecurityDomain("my security domain") @Stateless public class UserSession implements IUserSessionRemote, UserSessionLocal { ... @RolesAllowed("ADMINISTRATOR") public IUser createUser( String aName, String aPassword, EUserRole aRole ); My solution. In local interface define the method: IUser createUserLocal( String aName, String aPassword, EUserRole aRole ); and implement it in UserSession as copy of createUser() This metod invisible outside server code and no need in protection. Inside server my custom mbean make call to UserSessionLocal::createUserLocal(). Regards Egorov Dmitry. 
 
     
     
     
     
    