• Post Reply Bookmark Topic Watch Topic
  • New Topic

SessionContext is not reflecting the right user name.  RSS feed

 
Ramneek Handa
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sessionContext.getCallerPrincipal().getName() is not reflecting the right user name.

Hi,
I am calling a session bean, before I make a call to the session bean I am setting...

and make a call to the bean

but from the processRequest() method of RequestDispachterBean when I display

it displays
userID is guest
Infact I have not specified guest user in any of my xml.

If will be great if somebody can tell me why I am not getting the userID which I am setting i.e. "Manager".
 
Ramneek Handa
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can somebody help me on this :roll:
FYI I have check and found setSessionContext method is getting called of the RequestDispacher Session Bean. Then why it is not setting the User name.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!