Back to ESB Console Explore Management Runtime Environments, or ESB Console Explore Management Runtime Environments Info
| At line 231 added 26 lines. |
| The generated XML can be parsed using: |
| {{{ |
| import org.glassfish.openesb.management.data.io.ExplorerReader; |
| import org.glassfish.openesb.management.data.model.EnvironmentMeta; |
| .... |
| .... |
| .... |
| try { |
| String uri = "E:/workspace/esb-console/JmxExplorer/output.txt.xml"; |
| EnvironmentMeta report = ExplorerReader.parseFromFile(uri); |
| System.out.println(report.getDisplayString()); |
| } catch (MalformedURLException ex) { |
| Logger.getLogger(ExplorerReader.class.getName()).log(Level.SEVERE, null, ex); |
| } catch (ParserConfigurationException ex) { |
| Logger.getLogger(ExplorerReader.class.getName()).log(Level.SEVERE, null, ex); |
| } catch (SAXException ex) { |
| Logger.getLogger(ExplorerReader.class.getName()).log(Level.SEVERE, null, ex); |
| } catch (URISyntaxException ex) { |
| Logger.getLogger(ExplorerReader.class.getName()).log(Level.SEVERE, null, ex); |
| } catch (IOException ex) { |
| Logger.getLogger(ExplorerReader.class.getName()).log(Level.SEVERE, null, ex); |
| } |
| }}} |