[jboss-dev-forums] [JBoss AS 7 Development] - Re: @javax.annotation.security.RolesAllowed on EJBs does not work

jaikiran pai do-not-reply at jboss.com
Thu Jan 26 02:38:33 EST 2012


jaikiran pai [https://community.jboss.org/people/jaikiran] created the discussion

"Re: @javax.annotation.security.RolesAllowed on EJBs does not work"

To view the discussion, visit: https://community.jboss.org/message/648787#648787

--------------------------------------------------------------
> herb wrote:
> 
> 
> 
> But shouldn't do "@SecurityDomain" (at EJB level) the same as jboss-ejb3.xml (as also mentioned in  https://community.jboss.org/thread/177728 https://community.jboss.org/thread/177728)?
Like I expected, you are using the wrong annotation:
> import org.jboss.security.annotation.SecurityDomain; 
> 
> @Stateless 
> @SecurityDomain(value = "formauth") 
> public class Ejb 
You should be using @org.jboss.ejb3.annotation.SecurityDomain
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/648787#648787]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120126/9c11b7b2/attachment.html 


More information about the jboss-dev-forums mailing list