[jboss-cvs] JBossAS SVN: r74416 - branches/Branch_4_2/management/src/main/org/jboss/management/j2ee.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jun 11 16:51:12 EDT 2008


Author: csaldanh
Date: 2008-06-11 16:51:11 -0400 (Wed, 11 Jun 2008)
New Revision: 74416

Modified:
   branches/Branch_4_2/management/src/main/org/jboss/management/j2ee/J2EEServer.java
Log:
JBAS-1901: Fix to avoid adding ObjectName more than once to deployed Objects list
JBAS-2477: Related Jira


Modified: branches/Branch_4_2/management/src/main/org/jboss/management/j2ee/J2EEServer.java
===================================================================
--- branches/Branch_4_2/management/src/main/org/jboss/management/j2ee/J2EEServer.java	2008-06-11 20:26:11 UTC (rev 74415)
+++ branches/Branch_4_2/management/src/main/org/jboss/management/j2ee/J2EEServer.java	2008-06-11 20:51:11 UTC (rev 74416)
@@ -165,7 +165,10 @@
               J2EETypeConstants.WebModule.equals(lType) ||
               J2EETypeConstants.ServiceModule.equals(lType))
       {
-         deployedObjectNames.add(pChild.getCanonicalName());
+         //JBAS-1901: To avoid adding the same ObjectName more than once
+         String canonicalName = pChild.getCanonicalName();   
+	 if(!deployedObjectNames.contains(canonicalName))
+	   deployedObjectNames.add(canonicalName);
       }
       else if (J2EETypeConstants.JVM.equals(lType))
       {




More information about the jboss-cvs-commits mailing list