// JMXConfiguration config = new JMXConfiguration(commandlineoptionparser.getAlloptions());
try {
if (commandlineoptionparser == null)
commandlineoptionparser = new CommandLineOptionParser(args);
JMXConfiguration config = new JMXConfiguration(commandlineoptionparser.getAlloptions());
conn = ConnectorFactory.getConnector(config.gethostname(), config.getport());
jmxc = conn.getConnector();
mbsc = conn.getMBeanServerConnection();
if (config.checkoptionsetting("r", commandlineoptionparser.getAlloptions())) {
JMXinfo info = new JMXinfo(jmxc, commandlineoptionparser, mbsc);
ReportGenerator reportgen = new ReportGenerator(config.optionchecker("r", commandlineoptionparser.getAlloptions()), info);
reportgen.loadproperties();
reportgen.run();
}
/* This implementation is for the people who are using the interactive
mode for one shot this run the user given command and exit */