1 Reply Latest reply on Oct 4, 2004 1:21 PM by bossman

    Servlet invoking ejb on startup.

    bossman Newbie

      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.