• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SessionContext is not reflecting the right user name.

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic