2 Replies Latest reply on Oct 7, 2007 2:18 PM by yacho

    List all connected users

    linoux

      Hi,

      Is there a way to list login of all users connected to a JBoss application ? Using getCallerPrincipal I can determine the owner of the current session, but how do I know about all other users in all other sessions ?

      I tried to subclass a loginModule to maintain this list myself, but the logout method is not called if the user is logged out by a session timeout...

      Thanks for your help !

      --
      Céline

        • 1. Re: List all connected users
          changemylife

          I have same problem. If I can to list login of all users connected to a JBoss application, I can check and not allow the certain clients use the same account to login.(Ex: A use usename aaa, but If B use username aaa ---> he can't login!).

          have some ideas ?

          • 2. Re: List all connected users
            yacho

            well you know. Basically username should be unique.
            As for listing users. You can create a Stateless component to hold userlist and Use interceptor to update list and timestamp each time some action is rendered or page accesed.