Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

SessionContext is not reflecting the right user name.

 
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.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic