From: <do...@hy...> - 2008-02-28 00:01:09
|
Author: dougm Date: 2008-02-27 16:01:06 -0800 (Wed, 27 Feb 2008) New Revision: 7934 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=7934 Modified: branches/HQ_3_2/plugins/weblogic/src/org/hyperic/hq/plugin/weblogic/WeblogicConfig.java Log: [HHQ-1706] Fix config.xml parsing of listen-port and listen-address for 9.x+ (merged from trunk) Modified: branches/HQ_3_2/plugins/weblogic/src/org/hyperic/hq/plugin/weblogic/WeblogicConfig.java =================================================================== --- branches/HQ_3_2/plugins/weblogic/src/org/hyperic/hq/plugin/weblogic/WeblogicConfig.java 2008-02-28 00:00:54 UTC (rev 7933) +++ branches/HQ_3_2/plugins/weblogic/src/org/hyperic/hq/plugin/weblogic/WeblogicConfig.java 2008-02-28 00:01:06 UTC (rev 7934) @@ -322,21 +322,12 @@ if (srvTag.equals("name")) { server.name = getText(srv); } - else if (srvTag.equals("network-access-point")) { - NodeList netNodes = srv.getChildNodes(); - - for (int k=0; k<netNodes.getLength(); k++) { - Node net = netNodes.item(k); - String netTag = net.getNodeName(); - if (netTag.equals("listen-port")) { - port = getText(net); - } - else if (netTag.equals("listen-address")) { - addr = getText(net); - } - } - server.setURL(protocol, addr, port); + else if (srvTag.equals("listen-port")) { + port = getText(srv); } + else if (srvTag.equals("listen-address")) { + addr = getText(srv); + } } server.setURL(protocol, addr, port); servers.add(server); |