cancel
Showing results for 
Search instead for 
Did you mean: 

Get the number of concurrent users for a WD application

former_member182374
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

monalisa_biswal
Contributor
0 Kudos

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>);

}