users@glassfish.java.net

Re: isUserInRole not working

From: <glassfish_at_javadesktop.org>
Date: Tue, 10 Mar 2009 09:25:49 PDT

so if you invoke sayHello with some other username which is not in "noone" group do you see an AccessDenied ?.

The policy seems fine.

Try EJBContext.isCallerInRole("noone"), that would work.
[Message sent by forum member 'kumarjayanti' (kumarjayanti)]

http://forums.java.net/jive/thread.jspa?messageID=336130