0 Replies Latest reply on Jun 23, 2005 11:49 AM by Doug Tran

    Startup servlet initialised as a specific user?

    Doug Tran Newbie

      Hi all,

      I have created and deployed a startup servlet, but want to make sure that the initialisation happens as a specific user. I have tried to set the "run-as" element in the web.xml file, but the jboss security associations do not seem to be populated.

      Look at JBoss Application Server Guide, the end of Chapter 9 has some example code of how you would populate the security associations yourself from the information in a ServletRequest. However, at during the initialisation of a servlet, you don't have a ServletRequest!

      Anyone have ideas?

      Thanks in advance.