I have a seam component which has been annotated with
@Restrict("#{s:hasRole('admin')}")
org.jboss.seam.security.NotLoggedInExceptionwhen the MDB attempts to access the component.
I have tried using Identity.instance().addRole( admin
) in my MDB's onMessage as well as @RunAs/@RolesAllowed EJB annotations, but they don't seem to work...
Anyone know how to make the MDB run as a specified role?
Thanks