I want to connect to JBoss JMX agent programmatically...which means from a java program. I am not able to connect to this agent even locally or remotely using JConsole or JVisualVM. I have put the following entries in the run.conf.bat file to enable the agent for remote access.
Still the agent is not visible to JConsole. The following is the URL I have used to connect the agent from a java program.
My Server is running as a windows service using wrapper.jar
Joined: Dec 08, 2009
I have now connected to JMX agent successfully by just putting the custom port number in the jboss-service.xml under jmx-remoting.sar.
Does anyone how to get the reference to datasource object using this JMX agent?