For "initialization" of my application i have a servlet that invokes an ejb.
I have a servlet with load-on-startup set to 0. This causes the init() method of the servlet to be invoked after the deployment of the application.
this servlet in the init method invokes an ejb secured by some roles.
How do I make the servlet run as a particular principal during init() ?
I am on Jboss 4.0.
I am looking for the equivalent of "init-as-principal-name" tag in weblogic 8.1. Is there such a beast in Jboss4 ?