1 Reply Latest reply on Feb 12, 2003 8:05 AM by Jochen Cordes

    A&A information from DB not XML?

    Chris Newbie

      Hi,

      I want to get the data for the users and roles and stuff from my Database and not from the XML files.
      So when entering my website you get the Log In question. And the information that the application reads from the XML must be coming from the Database.
      Anybody an idea?

        • 1. Re: A&A information from DB not XML?
          Jochen Cordes Novice

          Hi !

          I assume, that you have already have set up a login-config in your web.xml. Getting roles from the database can be achieved by using the DatabaseServerLoginModule (as described in the "Getting Started"-documentation) and placing it in the login-config.xml in the conf-dir. The next step would be to define a security-domain in jboss-web.xml with a matching name (what you already might have done). Maybe you have to adjust the SQL-statements and type-mapping as they depend on the type and structure of your database.

          Hope it helps,

          Jochen.