Author: manaRH
Date: 2009-08-20 07:59:29 -0400 (Thu, 20 Aug 2009)
New Revision: 11405
Modified:
branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java
Log:
backport of JBSEAM-4029
Modified:
branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java
===================================================================
---
branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java 2009-08-20
07:39:30 UTC (rev 11404)
+++
branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java 2009-08-20
11:59:29 UTC (rev 11405)
@@ -139,10 +139,10 @@
protected MBeanServer locateJBoss()
{
- for (Iterator i = MBeanServerFactory.findMBeanServer(null).iterator(); i.hasNext();
)
+ for (Object o : MBeanServerFactory.findMBeanServer(null))
{
- MBeanServer server = (MBeanServer) i.next();
- if (server.getDefaultDomain().equals("jboss"))
+ MBeanServer server = (MBeanServer) o;
+ if ("jboss".equals(server.getDefaultDomain()))
{
return server;
}
Show replies by date