1 Reply Latest reply on Nov 18, 2007 9:12 PM by anil.saldhana

    Save LoginContext !

    changemylife

      Hi all!

      I use jboss-4.0.5.GA and EJB 3.0 and I use JAAS with DatabaseLoginModule to authenticate the specify client:

      LoginContext lc = new LoginContext("userTest", new MyCallbackHandler(username, passwd));
      lc.login();

      I want save LoginContext to database. Have any way that I can save LoginContext to each client (ex: client A login, and I save A's LoginContext). But it is not Serializable.
      My idea is Server will logout client by:
      lc.logout();


      Have some ideas ?

        • 1. Re: Save LoginContext !
          anil.saldhana

          Every EJB invocation goes over a single thread of execution. So you can incorporate the logout functionality in your client.

          If you insist on saving the LC in a database, the chair I am sitting on cannot hold me longer as I am ROTFL.