Skip to content

Jboss JMX Url

November 4, 2009
tags: ,

Hostname: name of machine where jboss is running
portnumber : is the port of jmxremote property and NOT jni and NOT RMI port defined in jboss-service.xml file.

So if you need to connect to jboss mbean through jconsole: add the following the run.conf file JAVA_OPTS

-Dcom.sun.management.jmxremote.port=12345 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djboss.platform.mbeanserver -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl

And then you can connect either remotely: localhost:12345

OR

through the JMX service url

service:jmx:rmi:///jndi/rmi://HostName:portnumber/jmxrmi

Advertisements
One Comment leave one →
  1. Timoteo Ponce permalink
    January 16, 2012 7:56 pm

    Very useful, thanks.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: