1 Reply Latest reply on Mar 3, 2004 4:28 AM by Scott Stark

    how to configure non defeault application policy

    sys user Master

      Hi Folks,

      I've a problem configuring JBOSS to non default application policy.

      In my \client\auth.conf

      MYAPP {

      org.jboss.security.auth.spi.DatabaseServerLoginModule required;


      in jboss-web.xml


      in my longin-config.xml

      <application-policy name = "MYAPP">

      <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
      flag = "required">
      <module-option name = "dsJndiName">java:/abc</module-option>
      <module-option name = "principalsQuery">select Password from Principals where PrincipalID=?</module-option>
      <module-option name = "rolesQuery">select * from Roles where PrincipalID=?</module-option>
      <module-option name = "unauthenticatedIdentity">guest</module-option>


      <application-policy name = "other">

      in my web.xml


      in my mssql-ds.xml


      The problem is my jboss app server always referring to "other" application policy(default). How to I redirect to MYAPP application policy. Please guide me. Thanks