[jboss-cvs] JBossAS SVN: r87482 - branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/templates.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Apr 17 06:08:22 EDT 2009


Author: emuckenhuber
Date: 2009-04-17 06:08:22 -0400 (Fri, 17 Apr 2009)
New Revision: 87482

Modified:
   branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/templates/JmsDestinationTemplate.java
Log:
[JBAS-6801] don't ignore the readOnly clustered config in the template

Modified: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/templates/JmsDestinationTemplate.java
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/templates/JmsDestinationTemplate.java	2009-04-17 09:51:51 UTC (rev 87481)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/templates/JmsDestinationTemplate.java	2009-04-17 10:08:22 UTC (rev 87482)
@@ -177,22 +177,33 @@
       Map<String, ManagedProperty> properties = info.getProperties();
       for(ManagedProperty p : properties.values())
       {
-         boolean skip = p.getValue() == null
-            || p.hasViewUse(ViewUse.CONFIGURATION) == false
+         // Get the value
+         MetaValue v = p.getValue();
+         String name = p.getName();
+         
+         // Check if we need to skip a property
+         boolean skip = p.hasViewUse(ViewUse.CONFIGURATION) == false
             || p.isReadOnly()
             || p.isRemoved();
           
+         // Don't skip clustered, which is a read
          if(skip)
+         {
+            if(name.equals("clustered"))
+               skip = false;
+         }
+
+         if(skip)
             continue;
          
-         MetaValue v = p.getValue();
+         // Skip null values
          if(v == null)
             continue;
+         
          // Skip the destinationType
          if(p == destTypeMP)
             continue;
-         
-         String name = p.getName();
+
          char c = name.charAt(0);
          if(Character.isLowerCase(c))
             name = Character.toUpperCase(c) + name.substring(1);




More information about the jboss-cvs-commits mailing list