-
1. Re: How to access JMX via a firewall on AS 7
kabirkhan Sep 5, 2011 4:52 AM (in response to sewatech)in standalone.xml, depending on which interfaces you have set up in your interfaces section, try setting up these socket bindings
<socket-binding name="jmx-connector-registry" interface="management" port="1090"/>
<socket-binding name="jmx-connector-server" interface="management" port="1091"/>
to bind to an externally accessible interface
-
2. Re: How to access JMX via a firewall on AS 7
sewatech Dec 19, 2011 9:22 AM (in response to sewatech)1 of 1 people found this helpfulThe only way I found to connect a jconsole to my JBoss AS 7 on EC2 to pass through a SOCKS proxy.
To start the proxy client :
ssh -vfND 6666 -i .amazon/aws1-sewatech-net.pem ec2-user@aws1.sewatech.net
To launch jconsole :
jconsole -J-DsocksProxyHost=localhost -J-DsocksProxyPort=6666 aws.sewatech.net:1090
For french speaking people, I described the solution in my personal wiki.
-
3. Re: How to access JMX via a firewall on AS 7
hgomez Dec 21, 2011 8:19 AM (in response to kabirkhan)socket-binding allow set TCP port, but what about TCP host (ie: listening adress).
How could we make JBoss to listen only to a specified adress (AWS dual homed case) ?
-
4. Re: How to access JMX via a firewall on AS 7
sewatech Dec 22, 2011 5:58 AM (in response to sewatech)Support of -Djava.rmi.server.hostname has been added in JBoss AS 7.1.0.CR1. With that version, I just have to add this in bin/standalone.conf
JAVA_OPTS="$JAVA_OPTS -Djava.rmi.server.hostname=myPublicHostName"