try {
JMXConnectionUtil.createJMXConnection();
String jmxServiceURL = System.getProperty(Constants.JMX_SERVICE_URL);
if(jmxServiceURL!=null) {
entries = new Entry[2];
entries[0] = new JMXProtocolType(JMXProtocolType.RMI);
entries[1] = new JMXProperty(Constants.JMX_SERVICE_URL, jmxServiceURL);
}
} catch (Exception e) {
logger.warn("Could not create JMX Connection, JMX monitoring not available", e);
}