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

    A&A information from DB not XML?

    chris.is

      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?
          jcordes

          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.