[jboss-cvs] JBossAS SVN: r86519 - 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
Tue Mar 31 06:15:49 EDT 2009


Author: emuckenhuber
Date: 2009-03-31 06:15:49 -0400 (Tue, 31 Mar 2009)
New Revision: 86519

Modified:
   branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/templates/JmsDestinationTemplate.java
Log:
fix the attribute names.

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-03-31 10:14:25 UTC (rev 86518)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/templates/JmsDestinationTemplate.java	2009-03-31 10:15:49 UTC (rev 86519)
@@ -148,9 +148,14 @@
          if(v == null)
             continue;
          
+         String name = p.getName();
+         char c = name.charAt(0);
+         if(Character.isLowerCase(c))
+            name = Character.toUpperCase(c) + name.substring(1);
+         
          if(v.getMetaType().isSimple())
          {
-            JmsAttributeMetaData jndiNameMD = new JmsAttributeMetaData(p.getName(), "" + ((SimpleValue)v).getValue());
+            JmsAttributeMetaData jndiNameMD = new JmsAttributeMetaData(name, "" + ((SimpleValue)v).getValue());
             destination.attribute = attributes;
             attributes.add(jndiNameMD);            
          }




More information about the jboss-cvs-commits mailing list