With this: List<String> getEndPoints() throws MalformedObjectNameException, NullPointerException, UnknownHostException, AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException { MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); QueryExp subQuery1 = Query.match(Query.attr(“protocol”), Query.value(“HTTP/1.1”)); QueryExp subQuery2 = Query.anySubString(Query.attr(“protocol”), Query.value(“Http11”)); QueryExp query = Query.or(subQuery1, subQuery2); Set<ObjectName> objs = mbs.queryNames(new ObjectName(“*:type=Connector,*”), query); String hostname = InetAddress.getLocalHost().getHostName(); InetAddress[] addresses = InetAddress.getAllByName(hostname); ArrayList<String> endPoints = new ArrayList<String>(); for (Iterator<ObjectName> i = … Read more