on 01-01-2007 8:26 AM
Hi all,
I need to implement a method which counts the number of concurrent users for a Web Dynpro application.
Say I have a portal with X applications, is there API that can tell me how many users are working on specific application?
I know that this line of code
IWDClientUser currentUsers[] = WDClientUser.getClientUsers();
will get me the number of users that are working on ALL Web Dynpro applications. Is there a way of getting it for specific application?
I thought of using a text file/small DB table that set/get the number of users but I think it will cause overhead issues.
Any ideas how to implement it?
Thanks,
Omri
Hi Omri,
Try using WDServerState.getActualApplications() method.It returns array of actual running applications.Compare ur application name with the array elements and keep a counter for matching elements.
String app[]=WDServerState.getActualApplications();
for(int i=0;i<app.length;i++)
{
view.getComponent().getMessageManager().reportSuccess(
app<i>);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.