Check with what user/credential you create InitialContext (through it you
get home interface of given statefull session bean).


-----Original Message-----
From: Rhodes, Phillip C. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 8:32 PM
To: [EMAIL PROTECTED]
Subject: pls help! request.getUserPrincipal() works, but sessionContext.ge
tCallerPrinciple() does not.

I am stumped!

In my servlet, I can call request.getUserPrincipal().getName() and get my
authenticated users username.

When that same servlet calls to a stateful session bean (in the same http
request), my call to
sessionContext.getCallerPrincipal().getName() returns "unknown"

YEP, I have the following defined in my sessionbean:

    protected transient SessionContext _context;

    public void setSessionContext(SessionContext sc) {
      _context = sc;
    }

Clue me in please.
Thanks very very much.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to