Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Run as in servlet or ejb

Hi,

I want to develop a servlet that does some kind of login verification and then sets the current user if the verification routine passed correctly.

To do this , in the servlet I want to do something like

if (authorizedByRoutine)

setCurrentUser("ccddee");

else

throw Exception("Not authorized");

This could also be done in a filter.

I know you can set the run-as user (role) in the web.xml but can you do it programmaticaly ?

Thanks.

Former Member
replied

Hi,

This is the related document for servlets:

http://help.sap.com/saphelp_nwce711/helpdata/en/46/7b7b98690c429ee10000000a1553f7/frameset.htm

Best regards,

Ekaterina

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question