Default EAP6 admin port http displaying instead of the specified port in JBoss ON
Issue
- the admin port of all EAP Host Controllers and Standalone Servers is always the default port : 9990
Environment
- Red Hat JBoss Operations Network (ON) 3.2
- Red Hat JBoss Enterprise Application Platform (EAP) 6
- Defining ports for the Host Controller and Standalone server per below:
We define a base port for each HC/Standalone.
1. The base port is set in a variable in a file properties.
export JBOSS_DOMAIN_PORT_BASE=10000
2. The variable is exported and use for the start of the HC/Standalone.
domain_port_base=$JBOSS_DOMAIN_PORT_BASE
3. A root port is defined and set in to JBOSS_OPTS
domain_port_base_root=`echo ${domain_port_base}|cut -c -3`
JBOSS_OPTS="............... -Dgerap.domain.port.base.root=$domain_port_base_root"
In the host.xml/standalone.xml the variable is concatenated with a common number
<management-interfaces>
<native-interface security-realm="ManagementRealm">
<socket interface="management" port="${gerap.domain.port.base.root}00"/>
</native-interface>
<http-interface security-realm="ManagementRealm">
<socket interface="management" port="${gerap.domain.port.base.root}01"/>
</http-interface>
</management-interfaces>
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
