0 Replies Latest reply on Oct 22, 2007 10:21 AM by Kosta Kontos

    web.xml <realm-name> vs jboss-web.xml <security-domain> ?

    Kosta Kontos Newbie

      Hi

      What is the difference between web.xml <realm-name> and jboss-web.xml <security-domain> ?

      I have this webapp that uses...

      <login-config>
       <auth-method>BASIC</auth-method>
       <realm-name>REALM-NAME</realm-name>
      </login-config>
      


      ... and I don't see why it needs to have <realm-name> specified when I've already set the <security-domain> in jboss-web.xml like so:

      <jboss-web>
       <security-domain>java:/jaas/REALM-NAME</security-domain>
      </jboss-web>
      


      Please clarify. Thanks.