[wildfly-dev] Making JMX connections to wildfly over ip6

Rob Stryker rstryker at redhat.com
Thu Feb 5 02:05:04 EST 2015


Hey all:

JBoss Tools' code to connect to wildfly over JMX seems to work fine 
except when using ip6. Code is simple:


         JMXConnector connector = null;
         try {
             connector = JMXConnectorFactory.connect(new 
JMXServiceURL(url), environment);
             MBeanServerConnection connection = 
connector.getMBeanServerConnection();
             synchronized(this) {
                 this.connectionToConnector.put(connection, connector);
             }
             return connection;
         } catch(IOException ioe) {


The environment is an empty HashMap<String,String>.

The url is: service:jmx:http-remoting-jmx://fe80::5e51:4fff:fee6:e7ea:9990
I've also tried an alternate url such as 
service:jmx:http-remoting-jmx://[fe80::5e51:4fff:fee6:e7ea]:9990


The server was started with the following program args:

-mp 
"/home/rob/apps/jboss/unzipped/wildfly-8.2.0.CR1-SNAPSHOT.zip.expanded/modules" 
-jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -b 
fe80::5e51:4fff:fee6:e7ea --server-config=standalone.xml 
-Djboss.server.base.dir=/home/rob/apps/jboss/unzipped/wildfly-8.2.0.CR1-SNAPSHOT.zip.expanded/standalone 


And the following vm args:

"-Dprogram.name=JBossTools: WildFly 8.x (1)" -server -Xms64m -Xmx512m 
-XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true 
-Djava.net.preferIPv4Stack=false -Dsun.rmi.dgc.client.gcInterval=3600000 
-Dsun.rmi.dgc.server.gcInterval=3600000 
-Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true 
"-Dorg.jboss.boot.log.file=/home/rob/apps/jboss/unzipped/wildfly-8.2.0.CR1-SNAPSHOT.zip.expanded/standalone/log/boot.log" 
"-Dlogging.configuration=file:/home/rob/apps/jboss/unzipped/wildfly-8.2.0.CR1-SNAPSHOT.zip.expanded/standalone/configuration/logging.properties" 
"-Djboss.home.dir=/home/rob/apps/jboss/unzipped/wildfly-8.2.0.CR1-SNAPSHOT.zip.expanded" 
-Dorg.jboss.logmanager.nocolor=true 
-Djboss.bind.address.management=fe80::5e51:4fff:fee6:e7ea


Thanks in advance.

- Rob Stryker


More information about the wildfly-dev mailing list