2 Replies Latest reply on Sep 29, 2010 11:17 AM by jaikiran

    Call servlet/class/method after login

    ahuba

      Hi all

      I am a Java developer and I've just finished my Java Web Application. I am using Jboss 5.1 GA.

      I'm asking myself how many people are using this application. The best thing would be if I could call a method, a class or a servlet after a user logged into the application. Is there a way to do that?

       

      I recently tried SessionCreated and SessionDestroyed methods, but a new session doesn't automatically mean a user logged in.

       

      I' using form based authentication.

       

      Thanks a lot for your input.

       

      Best regards,

      ahuba

        • 1. Re: Call servlet/class/method after login
          ahuba

          Is there anyone with an idea?

          • 2. Re: Call servlet/class/method after login
            jaikiran

            Anton Huba wrote:

             


             

            I recently tried SessionCreated and SessionDestroyed methods, but a new session doesn't automatically mean a user logged in.

             

            I' using form based authentication.

             

            Thanks a lot for your input.

             

            Best regards,

            ahuba

            A FORM based login would mean that you are using JAAS. So ultimately, the authentication process goes through a (stack of) LoginModules. You can have a counter logic or something similar in the login module which will count the number of users logging in.