xml version="1.0"?> "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "">
<web-app> ......
<security-constraint> <web-resource-collection> <web-resource-name>HtmlAdaptorweb-resource-name> <description>An example security config that only allows users with the role JBossAdmin to access the HTML JMX console web application description> <url-pattern>/*url-pattern> <http-method>GEThttp-method> <http-method>POSThttp-method> web-resource-collection> <auth-constraint> <role-name>JBossAdminrole-name> auth-constraint> security-constraint>
[jboss@node1 ~]$ cd JBOSS_HOME/server/default/deploy/management/console-mgr.sar/web-console.war [jboss@node1 web-console.war]$ vi WEB-INF/jboss-web.xml
xml version="1.0"?> "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "">
<web-app> ......
<security-constraint> <web-resource-collection> <web-resource-name>HtmlAdaptorweb-resource-name> <description>An example security config that only allows users with the role JBossAdmin to access the HTML JMX console web application description> <url-pattern>/*url-pattern> <http-method>GEThttp-method> <http-method>POSThttp-method> web-resource-collection> <auth-constraint> <role-name>JBossAdminrole-name> auth-constraint> security-constraint>
<login-config> <auth-method>BASICauth-method> <realm-name>JBoss WEB Consolerealm-name> login-config>
# # This file is optional; it may be removed if not needed. #
# # Specify the maximum file descriptor limit, use "max" or "maximum" to use # the default, as queried by the system. # # Defaults to "maximum" # #MAX_FD="maximum" export LANG="zh_CN.GBK" # # Specify the profiler configuration file to load. # # Default is to not load profiler configuration file. # #PROFILER=""