Skip to Content

Get the number of concurrent users for a WD application

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Jan 02, 2007 at 04:13 AM

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

    }

    Add comment
    10|10000 characters needed characters exceeded