According to Introduction to Java Mission Control we can either modify jmc.ini to add additional JVM argument or we can use '-vmarg' to overwrite the ones in jmc.ini or to add more argument use --launcher.appendVmargs -vmarg. I have tried both of these options but I keep getting :

WARNING: Unknown command 'vmarg'. Error found at row 0, from position 0 to 4

Basically I need to connect to Weblogic Domain Runtime mbean. in Jconsole , all I needed to do to connect to WLS Domain runtime mbean was to specify the following :

What that tells me is that the '-Djava.naming.factory.initial' is being recognized but for some reason the '-Djava.class.path' is not being recognized which explains the above error ! I have checked and double checked that 'wlfullclient.jar' exists and I am pointing to the right directory.

I have tried both jdk1.7.0_40 and jdk1.7.0_45 with no luck

Obviously I am missing something very trivial here but can't figure it out.

The URL I used earlier was a custom JMX and I have tried rmi,t3 and iiop and the error persists !

By looking at JMC standard out , i see :

WARNING: Could not retrieve MBean information for com.bea:ServerRuntime=AdminServer,Name=/jsp/changemgmt/needlockTable.jsp,Location=AdminServer,Type=ServletRuntime,ApplicationRuntime=consoleapp,WebAppComponentRuntime=AdminServer_/console!

SQE set up a reproducer, and I found what the problem is. WLS has four possible MBean servers. The one you are connecting to does not have the Runtime MBean in it - something that is critical for a key component in JMC. I've now done a patch which gracefully degrades the capabilities in JMC (such as reporting events in server side time) if connecting to such an MBean server.

Please note that you will lose a lot of functionality when connecting to an MBean server where the platform MBeans are not deployed. I've opened a bug on the next release, 5.3.0, where the patch will be available.

DomainRuntimeServiceMBean is the way to go though since it provides a single entry point for accessing all the hierarchies of all runtime mbeans. Add to that , Oracle recommends connection to this mbean for monitoring multiple servers.

jConsole has no issues accessing it. I developed a simple Java class which uses the same mbean and I got all the information I needed about the domain active configuration.

I tried as well accessing weblogic.management.mbeanservers.runtime.RuntimeServiceMBean and I have an issues as well with an error : Could not connect to host : null.

As the section you quoted states, that MBean is a good place for when you want to have a single point of connection, but access to information from the MBean of multiple servers. With JMC 5.3.0 this will work just like it does with JConsole, i.e. you will be able to browse and plot attributes and have trigger rules etc. That said, functionality that relies on known MBean object names, such as specific tabs for Thread analysis, the default trigger rules etc, will not work. For that to work, you should connect to an MBean server also containing the platform MBeans (in their default domain). Searching the internet should reveal ways to make that happen in WLS.