Specify a principal associated with a servlet
Calls from this servlet are associated with the anonymous principal. The element is available in the jboss-web.xml file to assign a specific principal to go along with the run-as role. The following fragment shows how to associate a principal named internal to the servlet above. AServlet internal