can I use @PreAuthorize or @Secured annotation inside a JSF Managed Bean. I've attempt to do this but I'm not get success. I've insert the code above in applicationContext file:
<context:component-scan base-package="prpa.athos.MBean" />
When I put @PreAuthorize or @Secured annotations the method secured don't blocks a user haven't authorization to execute this methos.
Please, someone help me!!