I miss Fiddler2 very much on Mac OS but there is a decent alternative to it. Open up Chrome and type:
chrome://net-internals in the address bar. Go to Events in the drop down box.
This is a raw web log meant to remind me of various daily hacks that I do at work and end up forgetting in a month's time. If you have any feedback on how the content could be improved so that it could be helpful to others, please let me know.
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=8234 -Dcom.sun.management.jmxremote.ssl=false
package com.rim.platform.mdm.core.service.email;
import java.io.IOException;
import java.util.Set;
import javax.management.InstanceNotFoundException;
import javax.management.IntrospectionException;
import javax.management.MBeanAttributeInfo;
import javax.management.MBeanInfo;
import javax.management.MBeanServerConnection;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectInstance;
import javax.management.ReflectionException;
import javax.management.remote.JMXConnector;
import javax.management.remote.JMXConnectorFactory;
import javax.management.remote.JMXServiceURL;
public class MonitoringPoints
{
public MonitoringPoints()
{
}
/**
* @param args
* @throws Exception
*/
public static void main(String[] args) throws Exception
{
String host = "localhost";
int port = 8234;
String url = "service:jmx:rmi:///jndi/rmi://" + host + ":" + port + "/jmxrmi";
printAll(url);
}
public static void printAll(String url) throws IOException, MalformedObjectNameException,
InstanceNotFoundException, IntrospectionException, ReflectionException
{
JMXServiceURL serviceUrl = new JMXServiceURL(url);
JMXConnector jmxConnector = JMXConnectorFactory.connect(serviceUrl, null);
try
{
MBeanServerConnection mbeanConn = jmxConnector.getMBeanServerConnection();
// now query to get the beans or whatever
Set beanSet = mbeanConn.queryMBeans(null, null);
for (ObjectInstance instance : beanSet)
{
MBeanInfo info = mbeanConn.getMBeanInfo(instance.getObjectName());
MBeanAttributeInfo[] mai = info.getAttributes();
System.out.println("\n******* Monitoring points for: " + instance.getObjectName());
for (MBeanAttributeInfo object : mai)
{
System.out.println(object.getName());
}
}
}
finally
{
jmxConnector.close();
}
}
}