title: How do I specify which security domain to use for my web application in JBoss AS7?
body: <p>I'm using JBoss AS7 + JSF 2.1</p>
  
  <p>I'm trying to use a Database login module to authenticate users on a specific resource in my web application. In standalone.xml there are 3 security domains: "other", "jboss-web-policy" and "jboss-ejb-policy".</p>
  
  <p><strong>Should</strong> I put my database login module in the "other" security domain?
  <strong>Or</strong> I should define a new custom security domain and put my database login module in it?</p>
  
  <p>Either way, how will I tell JBoss which security-domain/login module it should use for my application?</p>
  
  <p>Thanks in advance.</p>