title: Calling JBoss MBean functions to get threaddump
body: <p>An application is using JBoss 4.2.2, and I have found it necessary to call <code>listThreadDump()</code>, and I expect it is in <code>ServerInfo</code>.</p>
  
  <p>I am thinking the jar I need to find this information is jboss-jmx.jar.</p>
  
  <p>So, how do I programmatically duplicate what is done by calling something similar to <code>http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&amp;name=jboss.system:type=ServerInfo&amp;methodName=listThreadDump</code>?</p>