on 02-17-2005 3:10 PM
Hello
I've created Web Service from Stateless Session Bean with Basic Authentification & Support Logon Ticket features.
I need to determine current logged user in bean methods.
UMFactory.getAuthenticator().getLoggedInUser() method requires Request & Response.
WDClientUser.getCurrentUser() throws NullPointerException when i try call it.
Hi Aliaksandr,
What about javax.ejb.SessionContext.getCallerPrincipal()? Is it suitable for you?
HTH,
Vladimir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aliaksandr,
try this,
WDClientUser.forceLoggedInClientUser().getSAPUser().
getUniqueName();
In order to the User ID, you have to run your WD application in the Portal.
Hope it helps,
- Teecheu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.