This content has been marked as final.
Show 2 replies
-
1. Re: standard practice for getting user info from tomcat logi
spiritualmechanic Apr 18, 2004 6:33 PM (in response to ahardy66)Standard way. J2EE defined, similar to security in servlet context.
return context.getCallerPrincipal().getName();
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Security5.html
This is categorized as programmatic security. -
2. Re: standard practice for getting user info from tomcat logi
ahardy66 Apr 18, 2004 7:25 PM (in response to ahardy66)Right, thanks Steve, but I had cottoned on to that one already. What I need to know is, once I've got my userId, can I store it in EJB anywhere?
What the equivalent of the HTTP session?
Is it possible to edit the caller principal object?