Re: How to retrieve principal

2007-02-28 Thread Tremal Naik
2007/2/28, Christopher Schultz <[EMAIL PROTECTED]>: How is it that you have code that needs request-specific information, but no access to the request? Are you forced into this situation by other components (through a callback mechanism or something like that)? Or, is this the result of poor plan

Re: How to retrieve principal

2007-02-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tremal, Tremal Naik wrote: > 2007/2/28, Christopher Schultz <[EMAIL PROTECTED]>: >> Well, what /do/ you have available? > > May any of the following be useful? > > Server server = ServerFactory.getServer(); > Service service = server.findService("Ca

Re: How to retrieve principal

2007-02-28 Thread Tremal Naik
2007/2/28, Christopher Schultz <[EMAIL PROTECTED]>: Well, what /do/ you have available? That was my question: "What do I have available?". May any of the following be useful? I'm confused, really. Server server = ServerFactory.getServer(); Service service = server.findService("Catalina"); Engi

Re: How to retrieve principal

2007-02-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tremal, Tremal Naik wrote: > I want to retrieve the user principal where I don't have the request > available i.e. I cannot use the method > > HttpServletRequest.getUserPrincipal() Well, what /do/ you have available? - -chris -BEGIN PGP SIGNAT

Re: How to retrieve principal

2007-02-28 Thread Tremal Naik
2007/2/28, Peter Crowther <[EMAIL PROTECTED]>: We got round this by putting the name into a ThreadLocal variable from a place where we *did* have access to it, then reading it later - messy, I see, you use the same approach as JBoss. So, you mean there is no way to get the user principal using

RE: How to retrieve principal

2007-02-28 Thread Peter Crowther
> From: Tremal Naik [mailto:[EMAIL PROTECTED] > I want to retrieve the user principal where I don't have the request > available i.e. I cannot use the method > > HttpServletRequest.getUserPrincipal() > > I need in particular the user name. > > May you suggest something appropriate? We got roun

How to retrieve principal

2007-02-28 Thread Tremal Naik
Hello, I want to retrieve the user principal where I don't have the request available i.e. I cannot use the method HttpServletRequest.getUserPrincipal() I need in particular the user name. May you suggest something appropriate? -- TREMALNAIK ---