3.5.1.2 Editing the login-config.xml file

  1. Open the [appserver root]/server/lc_oracle_cl/conf/login-config.xml file in a text editor and modify the following code within the <policy> element:

        <application-policy name="OracleDbRealm"> 
            <authentication> 
                <login-module 
                code="org.jboss.resource.security.ConfiguredIdentityLoginModule" flag  
                = "required"> 
                <module-option name="principal">adobe</module-option> 
                <module-option name="userName">adobe</module-option> 
                <module-option name="password">adobe</module-option> 
                <module-option 
                name="managedConnectionFactoryName">jboss.jca:service=LocalTxCM, 
                name=Default DS </module-option> 
                </login-module> 
            </authentication> 
        </application-policy>
  2. Replace the bold text (for parameters principal,userName and password) with values that are specific to your database so that the application server can access your database.

  3. Save and close the file.

  4. Restart JBoss.

// Ethnio survey code removed