I have a java-ee web application that is secured with JASPI and @RolesAllowed annotations on my EJBs. I use a managed executor service to run a number of tasks. However, the tasks are not run as any user so I get permission denied errors while attempting to access my EJBs. I've tried using the @RunAs annotation, but that doesn't seem to work. How can I programatically authenticate?
Aucun commentaire:
Enregistrer un commentaire