JBoss Configuration
User name and password settings for 1.jmx-console logins
By default access Http://localhost:8080/jmx-console can browse JBoss deployment management of some information, do not need to enter a username and password, use a bit of security risks. Below we configure JBoss for this issue so that access Jmx-console must also know the username and password to access it. The JBoss configuration steps are as follows:
1 Find JBoss installation directory/server/default/deploy/jmx-console.war/web-inf/jboss-web.xml file, remove <security-domain>java:/ Jaas/jmx-console</security-domain> 's comment. The contents of the modified file are:
<jboss-web>
<!--uncomment the Security-domain to enable security. You'll
need to edit the htmladaptor login configuration to setup the
login modules used to authe Ntication users.-->
<security-domain>java:/jaas/jmx-console</security-domain>
</ Jboss-web>
2 Modify and I) in the Jboss-web.xml peer directory of the Web.xml file, find the <security-constraint/> node, remove its comments, the modified part of the content is:
<!--A security constraint which restricts access to the HTML JMX console to users with the
jbossadmin. Edit the roles to what your want and
uncomment the Web-inf/jboss-web.xml/security-domain element to enable
Secured access to the HTML JMX console.-->
<security-constraint>
<web-resource-collection& Gt
<web-resource-name>HtmlAdaptor</web-resource-name>
<description>an Example Secur ity config that is allows users with the
jbossadmin to access the HTML JMX console Web application
</description>
<url-pattern>/*</url-pattern>