This content has been marked as final.
Show 2 replies
-
1. Re: how to get jboss-web.xml element value?
starksm64 Mar 3, 2004 4:51 AM (in response to sunose)There is a link to the web security manager under the name "java:comp/env/security/security-domain". If you want the security manager you can look it up:
import org.jboss.security.SubjectSecurityManager; InitialContext ctx = new InitialContext(); Context envCtx = (Context) ctx.lookup("java:comp/env"); SubjectSecurityManager ssm = (SubjectSecurityManager) envCtx.lookup("security/security-domain");
If you just want the name, use:InitialContext ctx = new InitialContext(); Context envCtx = (Context) ctx.lookup("java:comp/env"); LinkRef ref = (LinkRef) envCtx.lookupLink("security/security-domain"); String secDomain = ref.getLinkName();
-
2. Re: how to get jboss-web.xml element value?
sunose Mar 3, 2004 7:20 AM (in response to sunose)Scott:
Thank you.you free me.:)
now the JAAS login code no hardcode.