0 Replies Latest reply on May 28, 2009 4:39 AM by jhahn

    Running MDB as specified role

    jhahn

      I have a seam component which has been annotated with

      @Restrict("#{s:hasRole('admin')}")

      that needs to be accessed by an MDB, however, I am getting org.jboss.seam.security.NotLoggedInException when 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