How to log the user who invoked service

Hi,

i have a problem. I need to know hot to log user who invoked service on my IS ?

Hi Ninja,

Using this service WmMonitor/wm.monitor.util:getCurrentUser can log the user details.

Regards,
Jeevan_mjk

Hi,

i use WM 6 and i don’t have this package.
Is there any other posibility to get user name ?

Write a small java code like the below snippet and include this service in your code…

InvokeState is = InvokeState.getCurrentState();
User user = is.getCurrentUser();
String strUsername = user.getName();

Thanks

Thanks

You are also try using the following service which will return you the current user. Place it inside your service for which you want to know who invoked it and give this as input to debug log along with service name. So it will be tracked in server log.

WmAdmin/wm.administrator.util:getCurrentUser

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.